Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- 'test'
|
- 'test'
|
||||||
- 'code_quality'
|
|
||||||
- 'build'
|
- 'build'
|
||||||
- 'deploy'
|
|
||||||
- 'push'
|
- 'push'
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
@@ -39,7 +37,7 @@ make_image:
|
|||||||
stage: build
|
stage: build
|
||||||
image: docker:26.1.3-dind
|
image: docker:26.1.3-dind
|
||||||
services:
|
services:
|
||||||
- dind
|
- docker:26.1.3-dind
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
|
|
||||||
@@ -69,9 +67,6 @@ Push latest:
|
|||||||
# We do not need GitLab to clone the source code.
|
# We do not need GitLab to clone the source code.
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
stage: push
|
stage: push
|
||||||
only:
|
|
||||||
# Only "master" should be tagged "latest"
|
|
||||||
- master
|
|
||||||
script:
|
script:
|
||||||
# Because we have no guarantee that this job will be picked up by the same runner
|
# Because we have no guarantee that this job will be picked up by the same runner
|
||||||
# that built the image in the previous step, we pull it again locally
|
# that built the image in the previous step, we pull it again locally
|
||||||
|
|||||||
Reference in New Issue
Block a user