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 9168d17d60
commit c80eee387a
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

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