Run docker-image workflow when PRs on main are merged

This commit is contained in:
William Brawner 2024-03-14 21:31:22 -06:00
parent f3b1976a0b
commit bd9c0e5857
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -4,9 +4,15 @@ on:
branches: main
tags:
- '*'
pull_request:
types:
closed
branches:
- 'main'
jobs:
push_to_registry:
if: github.event.pull_request.merged == true
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
@ -43,4 +49,4 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}