From e99f754a2585552653e9c8a33c0a54ffc2c85e1c Mon Sep 17 00:00:00 2001 From: Milind Srivastava Date: Sun, 8 Mar 2026 13:26:29 -0400 Subject: [PATCH] Modified CI to only push images for tags --- .github/workflows/docker.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index ffd35f543..1052e7798 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -3,11 +3,11 @@ name: Docker Build on: push: branches: [ main ] + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + pull_request: + branches: [ main ] workflow_dispatch: - # Version tag publishing — disabled for now - # push: - # tags: - # - 'v[0-9]+.[0-9]+.[0-9]+*' permissions: packages: write @@ -49,7 +49,7 @@ jobs: file: docker/Dockerfile build-args: | GIT_SHA=${{ github.sha }} - push: ${{ github.event_name != 'pull_request' }} + push: ${{ startsWith(github.ref, 'refs/tags/v') }} cache-from: type=registry,ref=ghcr.io/projectasap/asap-arroyo:buildcache cache-to: type=registry,ref=ghcr.io/projectasap/asap-arroyo:buildcache,mode=max target: arroyo-full