Rename gitlab ci jobs and stages
This commit is contained in:
parent
4f90723092
commit
98e5f603ec
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- publish
|
- build and publish
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
@ -32,7 +32,7 @@ variables:
|
||||||
- docker push $IMAGE
|
- docker push $IMAGE
|
||||||
- docker push $DEPS
|
- docker push $DEPS
|
||||||
|
|
||||||
build-tests:
|
build for tests:
|
||||||
<<: *build
|
<<: *build
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
|
@ -45,28 +45,28 @@ build-tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: $IMAGE_TESTS
|
image: $IMAGE_TESTS
|
||||||
|
|
||||||
unit_tests:
|
unit tests:
|
||||||
<<: *tests
|
<<: *tests
|
||||||
script:
|
script:
|
||||||
- cd /app
|
- cd /app
|
||||||
- python -m pytest
|
- python -m pytest
|
||||||
|
|
||||||
pre_commit:
|
pre-commit:
|
||||||
stage: test
|
stage: test
|
||||||
image: $PRE_COMMIT_IMAGE
|
image: $PRE_COMMIT_IMAGE
|
||||||
script:
|
script:
|
||||||
- pre-commit run --all-files --color always --show-diff-on-failure
|
- pre-commit run --all-files --color always --show-diff-on-failure
|
||||||
needs: []
|
needs: []
|
||||||
|
|
||||||
missing_migrations:
|
missing migrations:
|
||||||
<<: *tests
|
<<: *tests
|
||||||
script:
|
script:
|
||||||
- cd /app
|
- cd /app
|
||||||
- python manage.py makemigrations --check
|
- python manage.py makemigrations --check
|
||||||
|
|
||||||
publish:
|
build and publish latest:
|
||||||
<<: *build
|
<<: *build
|
||||||
stage: publish
|
stage: build and publish
|
||||||
variables:
|
variables:
|
||||||
POETRY_OPTIONS: "--no-dev"
|
POETRY_OPTIONS: "--no-dev"
|
||||||
before_script:
|
before_script:
|
||||||
|
|
Reference in a new issue