Skip to content
Snippets Groups Projects
Commit cbe72dc8 authored by Josha Bartsch's avatar Josha Bartsch :headphones:
Browse files

Fix references to target image

Use ref_slug instead of latest
If executing on main branch, the latest tag will be equivalent to ref_slug
parent 2c9379c9
No related branches found
No related tags found
1 merge request!56Update Master CI, building images for each target branch
Pipeline #978180 canceled
......@@ -42,7 +42,7 @@ tag-latest:
pages:
image:
name: ${CI_REGISTRY_IMAGE}:latest
name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""]
stage: deploy
script:
......@@ -59,14 +59,14 @@ test:
script:
- mkdir out
- chmod 777 out
- docker run --name examscan --rm -v $(pwd):$(pwd) -w $(pwd) ${CI_REGISTRY_IMAGE}:latest watermark.py tests/assets/pdfs out
- docker run --name examscan --rm -v $(pwd):$(pwd) -w $(pwd) ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} watermark.py tests/assets/pdfs out
artifacts:
paths:
- out/
test-coverage:
image:
name: ${CI_REGISTRY_IMAGE}:latest
name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""]
stage: test
script:
......@@ -83,7 +83,7 @@ test-coverage:
test-docs:
image:
name: ${CI_REGISTRY_IMAGE}:latest
name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""]
stage: test
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment