From 403ee7f69953a53cd7d462a3f12118b1c25757dd Mon Sep 17 00:00:00 2001 From: "Pohsiang (John) Hsu" Date: Thu, 26 Oct 2023 11:27:09 -0700 Subject: [PATCH] only push to docker repository when commit happens --- .github/workflows/ci-build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 87ab5fc..2548e90 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -44,14 +44,23 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image + - name: Build Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: migrationTool + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + - name: Push Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + if: ${{ github.event_name == 'push' }} with: context: migrationTool push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-playbackservice: runs-on: ubuntu-latest permissions: