From b020bff3162584a6d308201850b12a43bd3b3dcb Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Fri, 3 Apr 2020 12:13:19 +0200 Subject: [PATCH] fix: only run if Dockerfile changed --- .github/workflows/publish-docker.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml index 648f858..8657fdd 100644 --- a/.github/workflows/publish-docker.yaml +++ b/.github/workflows/publish-docker.yaml @@ -4,6 +4,9 @@ on: push: branches: - saga + paths: + - Dockerfile + - .github/workflows/publish-docker.yaml schedule: - cron: "0 0 * * *" @@ -20,7 +23,6 @@ jobs: docker build -t bifravst/azure-dev . - name: Publish image run: | - cd nrf docker login -u bifravst -p $DOCKER_PASSWORD docker images docker push bifravst/azure-dev