From e8dc97a161436b3e49d07eae7d788d6867e3c4c7 Mon Sep 17 00:00:00 2001 From: Juuso Takalainen Date: Thu, 23 May 2024 16:10:50 +0300 Subject: [PATCH] feat: only push docker image when changes are made to main branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccf0964..a7d7568 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,6 @@ jobs: - name: Build and push uses: docker/build-push-action@v3 with: - push: true + push: ${{ github.ref == 'refs/heads/main' }} tags: streamr/stream-metrics-index:latest platforms: linux/amd64,linux/arm64