Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RWTHmoodle
exam-scan
Commits
c2c96ad3
Commit
c2c96ad3
authored
Apr 27, 2021
by
Christian Rohlfing
Browse files
Update .gitlab-ci.yml file
parent
819a0010
Pipeline
#455245
failed with stages
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
c2c96ad3
image
:
docker:19.03.1
stages
:
-
build
-
test
before_script
:
-
docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
build
:
stage
:
build
script
:
-
docker pull ${CI_REGISTRY_IMAGE}:latest ||
true
-
docker build --cache-from ${CI_REGISTRY_IMAGE}:latest
--tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
--tag ${CI_REGISTRY_IMAGE}:latest .
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
-
docker push ${CI_REGISTRY_IMAGE}:latest
only
:
-
master
test
:
stage
:
test
script
:
-
mkdir out
-
docker run --name examscan --rm -v $(pwd):$(pwd) -w $(pwd) ${CI_REGISTRY_IMAGE}:latest watermark.py --i pdfs --o out
artifacts
:
paths
:
-
out/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment