Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
e56e57e2
Commit
e56e57e2
authored
Jun 26, 2017
by
Eliot Berriot
Browse files
Should now build and push latest docker image on master
parent
b73d6810
Pipeline
#97
passed with stages
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e56e57e2
variables
:
IMAGE_NAME
:
funkwhale/funkwhale
IMAGE
:
$IMAGE_NAME:$CI_BUILD_REF
IMAGE_LATEST
:
$IMAGE_NAME:latest
stages
:
-
test
-
build
...
...
@@ -58,16 +65,29 @@ pages:
tags
:
-
docker
docker_
image
:
docker_
develop
:
stage
:
deploy
before_script
:
-
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
-
cd api
script
:
-
docker build -t
funkwhale/funkwhale:$CI_COMMIT_REF_NAM
E .
-
docker push
funkwhale/funkwhale:$CI_COMMIT_REF_NAM
E
-
docker build -t
$IMAG
E .
-
docker push
$IMAG
E
only
:
-
develop
tags
:
-
dind
docker_release
:
stage
:
deploy
before_script
:
-
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
-
cd api
script
:
-
docker build -t $IMAGE -t $IMAGE_LATEST .
-
docker push $IMAGE
-
docker push $IMAGE_LATEST
only
:
-
master
tags
:
-
dind
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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