ci(docker): publish container images only on tag pushes (#692)

This commit is contained in:
Will Sarg 2026-02-17 17:27:36 -05:00 committed by GitHub
parent cc262907d9
commit b45c7ce96a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,6 @@ name: Docker
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
@ -60,7 +59,7 @@ jobs:
publish:
name: Build and Push Docker Image
if: github.event_name == 'push'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 25
permissions: