Merge pull request #919 from munnerz/fix-gitlab-ci

Workaround quay.io not support v2.2 docker image manifests
This commit is contained in:
jetstack-bot 2018-09-21 13:56:08 +01:00 committed by GitHub
commit d374e33b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 3 deletions

View File

@ -1,5 +1,16 @@
image: eu.gcr.io/jetstack-build-infra-images/cert-manager-e2e:v20180910-b8de01d-0.16.1
variables:
DOCKER_DRIVER: overlay
services:
- docker:1.12-dind
before_script:
- curl -L "https://get.docker.com/builds/Linux/x86_64/docker-1.9.1.tgz" | tar -C /usr/bin -xvzf- --strip-components=3 usr/local/bin/docker
- export DOCKER_HOST=${DOCKER_PORT}
- docker info > /dev/null
build:
tags:
- docker

View File

@ -138,6 +138,12 @@ images:
$(BAZEL_IMAGE_ENV) \
bazel run //:images
images_push:
$(BAZEL_IMAGE_ENV) \
bazel run //:images.push
images_push: images
# we do not use the :push target as Quay.io does not support v2.2
# manifests for Docker images, and rules_docker only supports 2.2+
# https://github.com/moby/buildkit/issues/409#issuecomment-394757219
# source the bazel workspace environment
eval $$($(BAZEL_IMAGE_ENV) ./hack/print-workspace-status.sh | tr ' ' '='); \
docker push "$${STABLE_DOCKER_REPO}/cert-manager-acmesolver:$${STABLE_DOCKER_TAG}"; \
docker push "$${STABLE_DOCKER_REPO}/cert-manager-controller:$${STABLE_DOCKER_TAG}"; \
docker push "$${STABLE_DOCKER_REPO}/cert-manager-webhook:$${STABLE_DOCKER_TAG}"