This commit is contained in:
bacon
2024-03-21 00:21:45 +03:00
parent 7faad7df23
commit 0e7a32f36a

View File

@@ -88,11 +88,6 @@ Build:
image: docker:24.0.5
stage: build
before_script:
# docker login asks for the password to be passed through stdin for security
# we use $CI_REGISTRY_PASSWORD here which is a special variable provided by GitLab
# https://docs.gitlab.com/ce/ci/variables/predefined_variables.html
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
# fetches the latest image (not failing if image is not found)
- docker pull $CI_REGISTRY_IMAGE:latest || true