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: ...@@ -42,7 +42,7 @@ tag-latest:
pages: pages:
image: image:
name: ${CI_REGISTRY_IMAGE}:latest name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""] entrypoint: [""]
stage: deploy stage: deploy
script: script:
...@@ -59,14 +59,14 @@ test: ...@@ -59,14 +59,14 @@ test:
script: script:
- mkdir out - mkdir out
- chmod 777 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: artifacts:
paths: paths:
- out/ - out/
test-coverage: test-coverage:
image: image:
name: ${CI_REGISTRY_IMAGE}:latest name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""] entrypoint: [""]
stage: test stage: test
script: script:
...@@ -83,7 +83,7 @@ test-coverage: ...@@ -83,7 +83,7 @@ test-coverage:
test-docs: test-docs:
image: image:
name: ${CI_REGISTRY_IMAGE}:latest name: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
entrypoint: [""] entrypoint: [""]
stage: test stage: test
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment