Commit 7ac52a8b authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

ci: deploy dev image and add latest tags

parent fba5c47d
...@@ -21,7 +21,10 @@ stages: ...@@ -21,7 +21,10 @@ stages:
docker: docker:
stage: prepare stage: prepare
script: script:
- docker build -f Packaging/Docker/Dockerfile.dev -t ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV} . - docker build
--file Packaging/Docker/Dockerfile.dev
--tag ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
--tag ${DOCKER_IMAGE_DEV}:latest .
tags: tags:
- shell - shell
...@@ -85,7 +88,11 @@ generate:packages: ...@@ -85,7 +88,11 @@ generate:packages:
build:docker: build:docker:
stage: build stage: build
script: script:
- docker build -f Packaging/Docker/Dockerfile --build-arg DOCKER_TAG=${DOCKER_TAG} -t ${DOCKER_IMAGE}:${DOCKER_TAG} . - docker build
--file Packaging/Docker/Dockerfile
--build-arg DOCKER_TAG=${DOCKER_TAG}
--tag ${DOCKER_IMAGE}:${DOCKER_TAG}
--tag ${DOCKER_IMAGE}:latest .
tags: tags:
- shell - shell
only: only:
...@@ -94,7 +101,10 @@ build:docker: ...@@ -94,7 +101,10 @@ build:docker:
deploy:docker: deploy:docker:
stage: deploy stage: deploy
script: script:
- docker push ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
- docker push ${DOCKER_IMAGE_DEV}:latest
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG} - docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
- docker push ${DOCKER_IMAGE}:latest
dependencies: dependencies:
- build:docker - build:docker
tags: tags:
...@@ -141,8 +151,7 @@ test:jupyter: ...@@ -141,8 +151,7 @@ test:jupyter:
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG} image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG}
artifacts: artifacts:
paths: paths:
- Logs/ - build/Examples/Notebooks/
- Examples/Notebooks/build
tags: tags:
- docker - docker
......
Supports Markdown
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