From f41ddd12c925a01fe9e153434de57d4cc3682780 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 4 Sep 2023 12:29:10 -0300 Subject: [PATCH] ci: skip docker image builds for pull requests Building docker images for pull requests is unnecessary. Also, the "release" tag should always refer to the latest commit on the master branch. Signed-off-by: Renato Westphal --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37af2c09..35834e3d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,6 +56,7 @@ jobs: push-image: name: Docker Image Build runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v3 - uses: docker/login-action@v2