Update .gitlab-ci.yml file

This commit is contained in:
Slava
2025-03-03 02:16:41 +00:00
parent 08f5a568f7
commit 94ae2cc9fd

View File

@@ -1,4 +1,8 @@
image: docker:latest
stages:
- test
- build
- push
test:
stage: test
@@ -18,11 +22,11 @@ before_script:
sleep 5
done
stages:
- build
- push
build:
needs:
- test
stage: build
script:
- docker info
@@ -30,6 +34,8 @@ build:
- docker tag $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG $CI_REGISTRY/$CI_PROJECT_PATH:latest
push:
needs:
- build
stage: push
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY