Commit e56e57e2 authored by Eliot Berriot's avatar 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
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_NAME .
- docker push funkwhale/funkwhale:$CI_COMMIT_REF_NAME
- docker build -t $IMAGE .
- docker push $IMAGE
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
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