Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ci/configure.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

fly -t bosh set-pipeline -p "bosh-gcs-cli" \
fly -t "${CONCOURSE_TARGET:-"storage-cli"}" set-pipeline \
-p "bosh-gcs-cli" \
-c "$(dirname "${0}")/pipeline.yml"
44 changes: 22 additions & 22 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
- trigger: true
get: gcscli-src
resource: bosh-gcscli-src-in-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: unit-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-unit.yml

- name: run-unit-main
Expand All @@ -18,23 +18,23 @@ jobs:
resource: bosh-gcscli-src-in-main
passed:
- promote-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: unit-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-unit.yml

- name: run-fast-int-develop
plan:
- trigger: true
get: gcscli-src
resource: bosh-gcscli-src-in-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: fast-integration-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-fast-int.yml
params:
google_json_key_data: ((gcp_service_key_json))
Expand All @@ -46,11 +46,11 @@ jobs:
resource: bosh-gcscli-src-in-main
passed:
- promote-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: fast-integration-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-fast-int.yml
params:
google_json_key_data: ((gcp_service_key_json))
Expand All @@ -60,11 +60,11 @@ jobs:
- trigger: true
get: gcscli-src
resource: bosh-gcscli-src-in-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: full-integration-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-int.yml
params:
google_json_key_data: ((gcp_service_key_json))
Expand All @@ -76,11 +76,11 @@ jobs:
resource: bosh-gcscli-src-in-main
passed:
- promote-develop
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true

- task: full-integration-tests
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/run-int.yml
params:
google_json_key_data: ((gcp_service_key_json))
Expand All @@ -95,7 +95,7 @@ jobs:
- run-unit-main
- run-fast-int-main
- run-int-main
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
trigger: true
passed:
- run-unit-main
Expand All @@ -108,14 +108,14 @@ jobs:
bump: patch
- in_parallel:
- task: build-linux
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/build.yml
output_mapping:
out: out-linux
params:
GOOS: linux
- task: build-windows
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
file: gcscli-src/ci/tasks/build.yml
output_mapping:
out: out-windows
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
resource: bosh-gcscli-src-in-develop
- get: bosh-golang-release-image
trigger: true
- put: bosh-gcscli-docker-image
- put: bosh-gcscli-image
params:
build: gcscli-src/ci/docker-image
labels:
Expand All @@ -171,17 +171,17 @@ jobs:
- get: golang-release
- get: weekly
trigger: true
- get: bosh-gcscli-docker-image
- get: bosh-gcscli-image
- task: bump-deps
file: golang-release/ci/tasks/shared/bump-deps.yml
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
input_mapping:
input_repo: gcscli-src
output_mapping:
output_repo: bumped-gcscli-src
- task: unit-tests
file: gcscli-src/ci/tasks/run-unit.yml
image: bosh-gcscli-docker-image
image: bosh-gcscli-image
input_mapping:
gcscli-src: bumped-gcscli-src
- put: bosh-gcscli-src-in-develop
Expand All @@ -191,21 +191,21 @@ jobs:

resource_types:
- name: semver
type: docker-image
type: registry-image
source:
repository: concourse/semver-resource
tag: 1.6

resources:
- name: bosh-gcscli-docker-image
- name: bosh-gcscli-image
type: docker-image
source:
repository: ghcr.io/cloudfoundry/bosh/gcscli
username: ((github_read_write_packages.username))
password: ((github_read_write_packages.password))

- name: bosh-golang-release-image
type: docker-image
type: registry-image
source:
repository: ghcr.io/cloudfoundry/bosh/golang-release
username: ((github_read_write_packages.username))
Expand Down
4 changes: 1 addition & 3 deletions ci/tasks/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
platform: linux
image_resource:
type: docker-image
source: {repository: ghcr.io/cloudfoundry/bosh/gcscli}

inputs:
- name: gcscli-src
path: bosh-gcscli
Expand Down
4 changes: 1 addition & 3 deletions ci/tasks/run-fast-int.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
platform: linux
image_resource:
type: docker-image
source: {repository: ghcr.io/cloudfoundry/bosh/gcscli}

inputs:
- name: gcscli-src
path: bosh-gcscli
Expand Down
4 changes: 1 addition & 3 deletions ci/tasks/run-int.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
platform: linux
image_resource:
type: docker-image
source: {repository: ghcr.io/cloudfoundry/bosh/gcscli}

inputs:
- name: gcscli-src
path: bosh-gcscli
Expand Down
4 changes: 1 addition & 3 deletions ci/tasks/run-unit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
platform: linux
image_resource:
type: docker-image
source: {repository: ghcr.io/cloudfoundry/bosh/gcscli}

inputs:
- name: gcscli-src
path: bosh-gcscli
Expand Down