Skip to content

Commit 06a9dc8

Browse files
authored
Support Dispatch Build (#5)
1 parent 995f6f4 commit 06a9dc8

File tree

2 files changed

+7
-42
lines changed

2 files changed

+7
-42
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
schedule:
66
- cron: '0 14 * * *'
77
push:
8-
branches:
9-
- main
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
repository_dispatch:
12+
types: [dispatches]
1013

1114
permissions:
1215
contents: write
13-
packages: write # GHCR への Push に必要
16+
packages: write
1417

1518
jobs:
1619
build-and-push:
@@ -34,7 +37,7 @@ jobs:
3437
uses: docker/build-push-action@v5
3538
with:
3639
context: .
37-
push: true
40+
push: ${{ github.event_name != 'pull_request' }}
3841
tags: |
3942
ghcr.io/minecraft-ros2/ros2_java:latest
4043
labels: |

.github/workflows/docker_build_pr.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)