Only build and push if we're on master and someon modified app
This commit is contained in:
parent
653215885a
commit
83035c2b25
@ -28,5 +28,8 @@ build_and_push_container:
|
|||||||
- docker build -t ldooks/dragon-bot:$CI_PIPELINE_ID -t ldooks/dragon-bot:latest .
|
- docker build -t ldooks/dragon-bot:$CI_PIPELINE_ID -t ldooks/dragon-bot:latest .
|
||||||
- docker push ldooks/dragon-bot:latest
|
- docker push ldooks/dragon-bot:latest
|
||||||
- docker push ldooks/dragon-bot:$CI_PIPELINE_ID
|
- docker push ldooks/dragon-bot:$CI_PIPELINE_ID
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
|
||||||
|
changes:
|
||||||
|
- app/*
|
||||||
|
- Dockerfile
|
||||||
|
@ -8,7 +8,7 @@ image:
|
|||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "latest"
|
tag: "89"
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user