This commit is contained in:
2025-03-03 20:39:49 +03:00
parent f76e99a3e3
commit e66f081370

View File

@@ -42,6 +42,7 @@ pre_push:
echo "Healthcheck failed, stopping push"
exit 1
fi
after_script:
- docker rm -f test_container
only:
- main
@@ -50,6 +51,8 @@ push:
needs:
- pre_push
stage: push
before_script:
- apk add curl
script:
- |
CURRENT_IMAGE_HASH=$(docker inspect --format='{{if .RepoDigests}}{{index .RepoDigests 0}}{{else}}no_digest{{end}}' $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG)