Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thalia
concrexit
Commits
8f7054a3
Verified
Commit
8f7054a3
authored
Dec 14, 2018
by
Joren Vrancken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only push latest docker tag on release
parent
aa65bb41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
.gitlab-ci.yml
.gitlab-ci.yml
+3
-1
No files found.
.gitlab-ci.yml
View file @
8f7054a3
...
...
@@ -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
Markdown
is supported
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