mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-16 05:00:35 +00:00
Move docker to deploy stage
This commit is contained in:
parent
bbec8b29d2
commit
b601e80acd
@ -6,6 +6,7 @@ before_script:
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
# Stage "build"
|
# Stage "build"
|
||||||
debian-jessie-build:
|
debian-jessie-build:
|
||||||
@ -92,23 +93,6 @@ get-dockerfile:
|
|||||||
- docker-gnsssdr/
|
- docker-gnsssdr/
|
||||||
|
|
||||||
|
|
||||||
docker-gnsssdr:
|
|
||||||
image: docker:latest
|
|
||||||
stage: test
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
before_script:
|
|
||||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
||||||
script:
|
|
||||||
- mkdir docker-build
|
|
||||||
- cd docker-build
|
|
||||||
- cp ../docker-gnsssdr/Dockerfile .
|
|
||||||
- docker build -t carlesfernandez/docker-gnsssdr .
|
|
||||||
- docker push "$CI_REGISTRY_IMAGE"
|
|
||||||
dependencies:
|
|
||||||
- get-dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
# Stage "test"
|
# Stage "test"
|
||||||
run-test:
|
run-test:
|
||||||
image: debian:9.3-slim
|
image: debian:9.3-slim
|
||||||
@ -129,3 +113,21 @@ run-test:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/*.xml
|
- build/*.xml
|
||||||
|
|
||||||
|
|
||||||
|
# Stage "deploy"
|
||||||
|
docker-gnsssdr:
|
||||||
|
image: docker:latest
|
||||||
|
stage: deploy
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
before_script:
|
||||||
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
|
script:
|
||||||
|
- mkdir docker-build
|
||||||
|
- cd docker-build
|
||||||
|
- cp ../docker-gnsssdr/Dockerfile .
|
||||||
|
- docker build -t carlesfernandez/docker-gnsssdr .
|
||||||
|
- docker push carlesfernandez/docker-gnsssdr
|
||||||
|
dependencies:
|
||||||
|
- get-dockerfile
|
||||||
|
Loading…
Reference in New Issue
Block a user