Commit 74e67e8f authored by Philip Reimer's avatar Philip Reimer

run all jobs on same runner so that caching works again

parent b448dfa1
......@@ -30,9 +30,12 @@ variables:
build:
stage: build
tags:
# run on docker-in-docker GitLab Runner
- dind
image: gitlab.atb-bremen.de:5555/atb/docker-base-images/dotnet-core-sdk-2.2-nodejs-10:1
cache:
untracked: true
untracked: false
policy: push
paths:
- SafireDashboard/out
......@@ -40,16 +43,16 @@ build:
- .dockerignore
script:
- dotnet publish -c Release -o out SafireDashboard/SafireDashboard.csproj
- ls -alR .
release-dev:
stage: release
image: docker:19.03
tags:
# run on docker-in-docker GitLab Runner
- dind
image: docker:19.03
cache:
untracked: true
untracked: false
policy: pull
paths:
- SafireDashboard/out
......@@ -60,11 +63,11 @@ release-dev:
before_script:
# login to docker registry
- echo -n ${CI_REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
- ls -al SafireDashboard
after_script:
# logout of docker registry
- docker logout ${CI_REGISTRY}
script:
- ls -alR .
# fetches the latest image (not failing if image is not found)
- docker pull ${IMAGE_LATEST} || true
# build docker image
......
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