mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-01-13 23:33:48 -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"
|
- docker push "$CI_REGISTRY_IMAGE"
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
changes:
|
||||||
|
- bin/*
|
||||||
|
- gradle/*
|
||||||
|
- src/*
|
||||||
|
- build.gradle
|
||||||
|
- DockerFile
|
||||||
|
- gradlew
|
||||||
|
- gradlew.bat
|
||||||
|
- settings.gradle
|
||||||
|
- .gitlab.ci.yml
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
# Official docker image.
|
# Official docker image.
|
||||||
|
@ -26,3 +36,13 @@ docker-build:
|
||||||
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
||||||
except:
|
except:
|
||||||
- main
|
- main
|
||||||
|
changes:
|
||||||
|
- bin/*
|
||||||
|
- gradle/*
|
||||||
|
- src/*
|
||||||
|
- build.gradle
|
||||||
|
- DockerFile
|
||||||
|
- gradlew
|
||||||
|
- gradlew.bat
|
||||||
|
- settings.gradle
|
||||||
|
- .gitlab.ci.yml
|
Loading…
Reference in a new issue