From 173cd383e4f69189aad37e0804cdb332624aeaad Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 15 Oct 2023 09:02:14 -0600 Subject: [PATCH] split harness into more stages --- .harness/firebase-deploy.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.harness/firebase-deploy.yaml b/.harness/firebase-deploy.yaml index 4238f91..9bebcf0 100644 --- a/.harness/firebase-deploy.yaml +++ b/.harness/firebase-deploy.yaml @@ -2,13 +2,9 @@ version: 1 kind: pipeline spec: stages: - - name: build + - name: debug type: ci spec: - volumes: - - name: dockersock - spec: {} - type: temp steps: - name: debug type: run @@ -23,6 +19,14 @@ spec: export build_after=${{ build.after }} env | grep ^build_ git --no-pager diff --name-only $build_before..$build_after + - name: dockers + type: ci + spec: + volumes: + - name: dockersock + spec: {} + type: temp + steps: - name: dind when: build.event == "push" && build.target == "main" type: background @@ -58,6 +62,10 @@ spec: docker build -t "$t" -f ./Dockerfile.cicd . docker push "$t" fi + - name: build + type: ci + spec: + steps: - name: build type: run when: build.event == "push" && build.target == "main"