Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
bf0846cd
Commit
bf0846cd
authored
Dec 14, 2018
by
Sébastiaan Versteeg
Browse files
Merge branch 'latest_tag' into 'master'
Only tag latest docker tag on release Closes
#798
See merge request
!1097
parents
aa65bb41
8f7054a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bf0846cd
...
...
@@ -87,7 +87,6 @@ build docker image:
-
docker-compose build --build-arg install_dev_requirements=0 --build-arg source_commit=$(git rev-parse HEAD) web
-
docker-compose run --rm web test
-
docker tag $DOCKER_LATEST $DOCKER_TAG
-
docker push $DOCKER_LATEST
-
docker push $DOCKER_TAG
variables
:
DOCKER_LATEST
:
registry.hub.docker.com/thalia/concrexit:latest
...
...
@@ -109,10 +108,13 @@ tag docker image:
script
:
-
docker pull $DOCKER_TAG
-
docker tag $DOCKER_TAG $DOCKER_TAG_PRODUCTION
-
docker tag $DOCKER_TAG $DOCKER_LATEST
-
docker push $DOCKER_TAG_PRODUCTION
-
docker push $DOCKER_LATEST
variables
:
DOCKER_TAG
:
registry.hub.docker.com/thalia/concrexit:$CI_COMMIT_SHA
DOCKER_TAG_PRODUCTION
:
registry.hub.docker.com/thalia/concrexit:$CI_COMMIT_TAG
DOCKER_LATEST
:
registry.hub.docker.com/thalia/concrexit:latest
cache
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment