Commit ffdab6a5 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Push to staging repository unless on master branch

parent 8a94d972
......@@ -105,5 +105,5 @@ $(TARGETS):
< docker/bind9/$(VENDOR)-template/Dockerfile \
> docker/bind9/$@/Dockerfile
docker build --no-cache -t "$(CI_REGISTRY_IMAGE)/$(CI_REGISTRY_NAME)" "docker/bind9/$@"
if [ "$CI_COMMIT_REF_NAME" = "$CI_DEFAULT_BRANCH" ]; then docker push "$(CI_REGISTRY_IMAGE)/$(CI_REGISTRY_NAME)"; fi
docker push "$(CI_REGISTRY_IMAGE)/$(CI_REGISTRY_NAME)"
rm -rf docker/bind9/$@
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