Skip to content

Commit d7ad04d

Browse files
committed
CI: test with docker-cpi as well as warden and gcp
1 parent 26641b9 commit d7ad04d

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

ci/pipeline.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ groups:
4040
- test-bosh-gcp
4141
- test-smoke
4242
- test-main-warden-cpi
43+
- test-main-docker-cpi
4344
- promote
4445
- name: cpis
4546
jobs:
@@ -144,6 +145,21 @@ jobs:
144145
stemcell: warden-ubuntu-noble-stemcell
145146
privileged: true
146147

148+
- name: test-main-docker-cpi
149+
serial: true
150+
build_log_retention:
151+
builds: 250
152+
plan:
153+
- get: bosh-deployment
154+
trigger: true
155+
- get: warden-ubuntu-noble-stemcell
156+
- task: test-main-docker-cpi
157+
timeout: 2h
158+
file: bosh-deployment/ci/tasks/test-main-docker-cpi.yml
159+
input_mapping:
160+
stemcell: warden-ubuntu-noble-stemcell
161+
privileged: true
162+
147163
- name: promote
148164
serial: true
149165
build_log_retention:
@@ -155,6 +171,7 @@ jobs:
155171
- test-smoke
156172
- test-bosh-gcp
157173
- test-main-warden-cpi
174+
- test-main-docker-cpi
158175
- put: bosh-deployment-commit-status
159176
params:
160177
state: success

ci/tasks/test-main-docker-cpi.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
bosh_deployment="${PWD}/bosh-deployment"
7+
rm -rf "/usr/local/bosh-deployment"
8+
cp -r "${PWD}/bosh-deployment" "/usr/local/bosh-deployment"
9+
10+
export USE_LOCAL_RELEASES=false
11+
. start-bosh
12+
. /tmp/local-bosh/director/env
13+
14+
URL=$(cat stemcell/url)
15+
SHA1=$(cat stemcell/sha1)
16+
17+
bosh upload-stemcell --sha1 "$SHA1" "$URL"
18+
19+
bosh -n update-runtime-config "${bosh_deployment}/runtime-configs/dns.yml"
20+
21+
echo "-----> `date`: Deploy"
22+
bosh -n -d zookeeper deploy "${script_dir}/../assets/zookeeper.yml"
23+
24+
echo "-----> `date`: Exercise deployment"
25+
bosh -n -d zookeeper run-errand smoke-tests
26+
27+
echo "-----> `date`: Exercise deployment"
28+
bosh -n -d zookeeper recreate
29+
30+
echo "-----> `date`: Clean up disks, etc."
31+
bosh -n -d zookeeper clean-up --all

ci/tasks/test-main-docker-cpi.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: registry-image
6+
source:
7+
repository: ghcr.io/cloudfoundry/bosh/docker-cpi
8+
9+
inputs:
10+
- name: bosh-deployment
11+
- name: stemcell
12+
13+
run:
14+
path: bosh-deployment/ci/tasks/test-main-docker-cpi.sh

0 commit comments

Comments
 (0)