File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish rechunk to GHCR
2
2
3
3
on :
4
+ pull_request :
5
+ paths :
6
+ - " ./Dockerfile"
7
+ - " ./.github/workflows/build_rechunk.yml"
4
8
workflow_dispatch :
5
9
inputs :
6
10
tag :
7
- description : ' The version to tag the package with:'
11
+ description : " The version to tag the package with:"
8
12
required : true
9
-
13
+
10
14
release :
11
15
types : [published]
12
16
@@ -24,12 +28,23 @@ jobs:
24
28
25
29
steps :
26
30
- name : Login to GHCR
31
+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'release'
27
32
run : echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login ghcr.io -u ${{ github.actor }} --password-stdin
28
- - uses : actions/checkout@v3
33
+
34
+ - uses : actions/checkout@v4
35
+
36
+ - name : Set up QEMU
37
+ uses : docker/setup-qemu-action@v3
38
+
29
39
- name : Build Image
30
40
run : |
31
- sudo podman build --tag 'fedora_build' .
41
+ sudo podman build \
42
+ --tag 'fedora_build' \
43
+ --platform 'linux/amd64,linux/arm64' \
44
+ .
45
+
32
46
- name : Upload Image
47
+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'release'
33
48
id : upload
34
49
shell : bash
35
50
run : |
48
63
sudo podman push ghcr.io/hhd-dev/rechunk:stable
49
64
sudo podman tag fedora_build ghcr.io/hhd-dev/rechunk:$VERSION
50
65
sudo podman push ghcr.io/hhd-dev/rechunk:$VERSION
51
-
You can’t perform that action at this time.
0 commit comments