1
0
Fork 0

gitlab-ci: Push Docker image to GitLab registry

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
environments/stage/deployments/60
Vasilis Tsiligiannis 2018-11-10 15:06:50 +02:00
parent f1383021a9
commit c2cf1cee53
2 changed files with 18 additions and 0 deletions

View File

@ -14,6 +14,23 @@ test:
- eslint 'db/static/js/*.js'
- stylelint 'db/static/css/*.css'
docker:
stage: deploy
image: docker:latest
services:
- docker:dind
before_script:
- apk --update add py-pip
- pip install docker-compose
script:
- docker-compose build --no-cache --pull
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
- docker tag satnogs-db:latest $CI_REGISTRY_IMAGE/satnogs-db:$CI_COMMIT_REF_NAME
- docker push $CI_REGISTRY_IMAGE/satnogs-db:$CI_COMMIT_REF_NAME
only:
- master
- dev
stage:
stage: deploy
environment: stage

View File

@ -24,6 +24,7 @@ services:
web:
build:
context: '.'
image: 'satnogs-db'
ports:
- '8000:8000'
links: