mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +00:00
Run CI tasks only when actual code is changed
This commit is contained in:
parent
946afbf726
commit
79e01a4145
@ -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 New Issue
Block a user