variables: DOCKER_HUB_REPO: quay.io/libre.sh/jibri VERSION: v0.2.0 test: tags: - build image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: - /kaniko/executor --context . --no-push --build-arg VERSION=$VERSION except: - master build: tags: - build image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: - cp $DOCKER_SECRET_CONFIG /kaniko/.docker/config.json - export DESTINATION="--destination ${DOCKER_HUB_REPO}:${VERSION} --destination ${DOCKER_HUB_REPO}:latest" - /kaniko/executor --context . ${DESTINATION} --build-arg VERSION=$VERSION only: - master