cert-manager-webhook-example/.gitlab-ci.yml
2021-08-31 22:44:50 -04:00

30 lines
702 B
YAML

default:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:latest
services:
- name: gcr.io/pluralsh/docker:19.03.13-dind
alias: docker
before_script:
- until docker info; do sleep 1; done
- gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
- gcloud auth configure-docker -q
- docker login -u mguarino46@gmail.com -p $PLURAL_ACCESS_TOKEN dkr.plural.sh
retry:
max: 2
when:
- runner_system_failure
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
stages:
- push
push-certmanager-webhook:
stage: push
script:
- make build
- make push