Update .gitlab-ci.yml file

This commit is contained in:
Slava
2025-03-06 09:08:40 +00:00
parent e0c1805907
commit 04cef1e4a1

View File

@@ -8,9 +8,8 @@ workflow:
- when: never
stages:
# - test
- build
- pre_push
- test
- push
# test:
@@ -31,10 +30,10 @@ build:
- docker tag $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_SHORT_SHA
- docker tag $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG $CI_REGISTRY/$CI_PROJECT_PATH:latest
pre_push:
test:
needs:
- build
stage: pre_push
stage: test
before_script:
- apk add --no-cache curl
script:
@@ -57,7 +56,7 @@ pre_push:
push:
needs:
- pre_push
- test
stage: push
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY