Add rules for pipeline steps
This commit is contained in:
@@ -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/*"
|
||||
|
||||
######################################
|
||||
# #
|
||||
|
||||
Reference in New Issue
Block a user