Use a custom build container on Shippable. (#69660)

* Use a custom build container on Shippable.

This supports key generation before git_sync, to avoid issues with pre-migration PRs.

If the node pool is switched to another version, a matching build container should be built and used.

* Don't kill our own custom container.
This commit is contained in:
Matt Clay 2020-05-26 14:05:46 -07:00 committed by GitHub
parent c987c0c8a1
commit 5fc01c0a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -151,6 +151,11 @@ branches:
- "revert-*-*"
build:
pre_ci_boot:
image_name: quay.io/ansible/shippable-build-container
image_tag: 6.10.4.0
pull: true
options: --privileged=true --net=bridge
ci:
- test/utils/shippable/timing.sh test/utils/shippable/shippable.sh $T

View file

@ -13,7 +13,7 @@ docker images ansible/ansible
docker images quay.io/ansible/*
docker ps
for container in $(docker ps --format '{{.Image}} {{.ID}}' | grep -v '^drydock/' | sed 's/^.* //'); do
for container in $(docker ps --format '{{.Image}} {{.ID}}' | grep -v -e '^drydock/' -e '^quay.io/ansible/shippable-build-container:' | sed 's/^.* //'); do
docker rm -f "${container}" || true # ignore errors
done