mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-01-13 15:23:47 -06:00
Run CI tasks only when actual code is changed
This commit is contained in:
parent
946afbf726
commit
79e01a4145
1 changed files with 20 additions and 0 deletions
|
@ -12,6 +12,16 @@ docker-build-main:
|
|||
- docker push "$CI_REGISTRY_IMAGE"
|
||||
only:
|
||||
- main
|
||||
changes:
|
||||
- bin/*
|
||||
- gradle/*
|
||||
- src/*
|
||||
- build.gradle
|
||||
- DockerFile
|
||||
- gradlew
|
||||
- gradlew.bat
|
||||
- settings.gradle
|
||||
- .gitlab.ci.yml
|
||||
|
||||
docker-build:
|
||||
# Official docker image.
|
||||
|
@ -26,3 +36,13 @@ docker-build:
|
|||
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
||||
except:
|
||||
- main
|
||||
changes:
|
||||
- bin/*
|
||||
- gradle/*
|
||||
- src/*
|
||||
- build.gradle
|
||||
- DockerFile
|
||||
- gradlew
|
||||
- gradlew.bat
|
||||
- settings.gradle
|
||||
- .gitlab.ci.yml
|
Loading…
Reference in a new issue