From 523c4fd9a648ecf1336776b0882f09c1a1c4974c Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 15 Oct 2023 08:16:02 -0600 Subject: [PATCH] only docker build if push to main --- .harness/firebase-deploy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.harness/firebase-deploy.yaml b/.harness/firebase-deploy.yaml index b2f5a33..b8e45d7 100644 --- a/.harness/firebase-deploy.yaml +++ b/.harness/firebase-deploy.yaml @@ -24,6 +24,7 @@ spec: env | grep ^build_ git --no-pager diff --name-only $build_before..$build_after - name: dind + when: build.event == "push" && build.target == "main" type: background spec: container: @@ -34,6 +35,7 @@ spec: path: /var/run - name: docker type: run + when: build.event == "push" && build.target == "main" spec: name: docker container: registry-app.inhome.blapointe.com:5001/docker:latest