Commit e48ecf84 authored by Jonas Verhoelen's avatar Jonas Verhoelen

try to disable content trust when pushing docker img

parent df56b3c4
Pipeline #33935 failed
......@@ -50,8 +50,7 @@ unit-test:
lint-dockerfile:
stage: dockerize
image: hadolint/hadolint:latest-debian
script:
- hadolint Dockerfile
script: hadolint Dockerfile
docker-build-and-push:
stage: dockerize
......@@ -63,6 +62,8 @@ docker-build-and-push:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --network host --disable-content-trust=false -t $DOCKER_TAG_FULL_NAME .
- docker push $DOCKER_TAG_FULL_NAME
only:
- master
- docker push --disable-content-trust=false $DOCKER_TAG_FULL_NAME
#only:
# - master
dependencies:
- lint-dockerfile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment