fixes
This commit is contained in:
@@ -42,6 +42,7 @@ pre_push:
|
|||||||
echo "Healthcheck failed, stopping push"
|
echo "Healthcheck failed, stopping push"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
after_script:
|
||||||
- docker rm -f test_container
|
- docker rm -f test_container
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
@@ -50,6 +51,8 @@ push:
|
|||||||
needs:
|
needs:
|
||||||
- pre_push
|
- pre_push
|
||||||
stage: push
|
stage: push
|
||||||
|
before_script:
|
||||||
|
- apk add curl
|
||||||
script:
|
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)
|
CURRENT_IMAGE_HASH=$(docker inspect --format='{{if .RepoDigests}}{{index .RepoDigests 0}}{{else}}no_digest{{end}}' $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user