[chore] Trigger workflow on PR close.
Some checks failed
Docker / publish (pull_request) Failing after 9m35s

This commit is contained in:
jmug
2026-03-04 06:03:13 -08:00
parent 52980560dd
commit 5f1b91d638

View File

@@ -2,8 +2,9 @@ name: Docker
on: on:
push: push:
branches: # TODO: Bring back branch push once gitea is updated past 1.21
- "handmade" # branches:
# - "handmade"
tags: tags:
- "*" - "*"
# TODO: Bring back once gitea is updated past 1.21 # TODO: Bring back once gitea is updated past 1.21
@@ -18,6 +19,7 @@ on:
pull_request: pull_request:
branches: branches:
- "handmade" - "handmade"
types: [opened, synchronize, reopened, closed]
# TODO: Bring back once gitea is updated past 1.21 # TODO: Bring back once gitea is updated past 1.21
# paths-ignore: # paths-ignore:
# - ".github/**" # - ".github/**"
@@ -33,8 +35,6 @@ on:
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# NOTE: Running on pull requests for now, but without pushing.
# if: github.event_name != 'pull_request'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -53,7 +53,7 @@ jobs:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request' || github.event.pull_request.merged == true
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -61,7 +61,7 @@ jobs:
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' || github.event.pull_request.merged == true }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }} annotations: ${{ steps.meta.outputs.annotations }}