ci: upgrade/downgrade earlier in pipeline
...also make this a requirement for a new rc
@@ -233,6 +233,48 @@ jobs:
file: concourse/ci/tasks/docker-compose-watsjs.yml
params: {DOCKERFILE: ci/dockerfiles/dev-test/Dockerfile}
+- name: upgrade
+ public: true
+ serial: true
+ plan:
+ - aggregate:
+ - get: concourse
+ passed: [dev-image]
+ trigger: true
+ - get: dev-image
+ passed: [dev-image]
+ params: {format: oci}
+ - get: postgres-image
+ params: {format: oci}
+ - get: unit-image
+ passed: [dev-image]
+ - task: upgrade-test
+ privileged: true
+ image: unit-image
+ file: concourse/ci/tasks/upgrade-test.yml
+ params: {DOCKERFILE: ci/dockerfiles/dev-test/Dockerfile}
+
+- name: downgrade
+ public: true
+ serial: true
+ plan:
+ - aggregate:
+ - get: concourse
+ passed: [dev-image]
+ trigger: true
+ - get: dev-image
+ passed: [dev-image]
+ params: {format: oci}
+ - get: postgres-image
+ params: {format: oci}
+ - get: unit-image
+ passed: [dev-image]
+ - task: downgrade-test
+ privileged: true
+ image: unit-image
+ file: concourse/ci/tasks/upgrade-test.yml
+ params: {DOCKERFILE: ci/dockerfiles/dev-test/Dockerfile}
+
- name: k8s-smoke
public: true
serial: true
@@ -352,13 +394,13 @@ jobs:
plan:
- aggregate:
- get: concourse
- passed: [testflight, watsjs]
+ passed: [testflight, watsjs, upgrade, downgrade]
trigger: true
- get: dev-image
trigger: true
- passed: [testflight, watsjs]
+ passed: [testflight, watsjs, upgrade, downgrade]
- get: unit-image
- passed: [testflight, watsjs]
+ passed: [testflight, watsjs, upgrade, downgrade]
trigger: true
- put: version
params: {pre: rc}
@@ -470,40 +512,6 @@ jobs:
file: concourse/ci/tasks/smoke.yml
input_mapping: {endpoint-info: outputs}
-- name: upgrade
- public: true
- serial: true
- plan:
- - aggregate:
- - get: concourse
- passed: [build-rc]
- trigger: true
- - get: unit-image
- passed: [build-rc]
- - task: upgrade-test
- privileged: true
- image: unit-image
- file: concourse/ci/tasks/upgrade-test.yml
- params: {DOCKERFILE: ci/dockerfiles/dev-test/Dockerfile}
-
-- name: downgrade
- public: true
- serial: true
- plan:
- - aggregate:
- - get: concourse
- passed:
- - build-rc
- trigger: true
- - get: unit-image
- passed:
- - build-rc
- - task: downgrade-test
- privileged: true
- image: unit-image
- file: concourse/ci/tasks/upgrade-test.yml
- params: {DOCKERFILE: ci/dockerfiles/dev-test/Dockerfile}
-
- name: bosh-check-props
public: true
max_in_flight: 1
