Update .gitlab-ci.yml file
This commit is contained in:
@ -1,12 +1,14 @@
|
|||||||
docker-build:
|
docker-build:
|
||||||
|
# docker-in-docker: the runner uses docker from inside a docker container to execute the CI-jobs
|
||||||
|
image: docker:20 # provides the docker toolset (but without an active daemon)
|
||||||
|
|
||||||
stage: build
|
stage: build
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- changes: # only run CI when these files have changed
|
- changes: # only run CI when these files have changed
|
||||||
- "*.py"
|
- "*.py"
|
||||||
|
- "Dockerfile"
|
||||||
# docker-in-docker: the runner uses docker from inside a docker container to execute the CI-jobs
|
- ".gitlab-ci.yml"
|
||||||
image: docker:20 # provides the docker toolset (but without an active daemon)
|
|
||||||
|
|
||||||
# services configure images that run during jobs linked to the image (above)
|
# services configure images that run during jobs linked to the image (above)
|
||||||
services:
|
services:
|
||||||
@ -14,7 +16,7 @@ docker-build:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# docker login asks for the password to be passed through stdin for security
|
# docker login asks for the password to be passed through stdin for security
|
||||||
- docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# fetches the latest image from this projects registry to use as cache (not failing if image is not found)
|
# fetches the latest image from this projects registry to use as cache (not failing if image is not found)
|
||||||
|
Reference in New Issue
Block a user