Fakultas Ilmu Komputer UI

Commit e68f121a authored by Daya Adianto's avatar Daya Adianto 🐈
Browse files

Run container image building job only on master branch

parent abad114b
Pipeline #20328 passed with stages
in 21 minutes and 3 seconds
......@@ -87,7 +87,7 @@ production:
Publish Container Image:
image: docker:19-git
stage: test
stage: deploy
services:
# Workaround from https://forum.gitlab.com/t/docker-dind-stops-working-after-12-1-0-update/28664/2
- name: docker:19-dind
......@@ -100,8 +100,6 @@ Publish Container Image:
before_script:
- docker info
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
- echo "TODO Run this job in 'deploy' stage"
- echo "TODO Run this job only at 'master' branch"
script:
- docker build
--build-arg=NPM_PROXY=$NPM_PROXY
......@@ -111,4 +109,7 @@ Publish Container Image:
- docker push $IMAGE_NAMESPACE/kape:latest
tags:
- docker
retry: 1
allow_failure: true
only:
- master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment