Run docker-image workflow when PRs on main are merged
This commit is contained in:
parent
9168d17d60
commit
c80eee387a
1 changed files with 7 additions and 1 deletions
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue