Only build and push if we're on master and someon modified app

This commit is contained in:
ein 2022-01-31 21:57:36 -08:00
parent 653215885a
commit 83035c2b25
2 changed files with 6 additions and 3 deletions

View File

@ -28,5 +28,8 @@ build_and_push_container:
- 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:$CI_PIPELINE_ID
only:
- master
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
changes:
- app/*
- Dockerfile

View File

@ -8,7 +8,7 @@ image:
repository: ldooks/dragon-bot
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
tag: "89"
imagePullSecrets: []
nameOverride: ""