Add rules for pipeline steps

This commit is contained in:
Deko
2023-03-03 22:33:16 +01:00
parent 3c630dfdb3
commit 30419e46c3

View File

@@ -17,7 +17,11 @@ stages:
stage: lint
before_script:
- *install-deps
only:
changes:
- "/poetry.lock"
- "/pyproject.toml"
- "/app/*"
######################################
# #
# LINT STEPS #
@@ -55,6 +59,12 @@ build:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -f Dockerfile -t $IMAGE_TAG --build-arg version=$CI_COMMIT_SHA .
- docker push $IMAGE_TAG
only:
changes:
- "/Dockerfile"
- "/poetry.lock"
- "/pyproject.toml"
- "/app/*"
######################################
# #