@@ -3,6 +3,9 @@ name: Cross-Compile Docker Build and Push
3
3
on :
4
4
release :
5
5
types : [published]
6
+ push :
7
+ branches :
8
+ - fix-docker-GA
6
9
workflow_dispatch :
7
10
8
11
env :
26
29
- name : Set up Docker Buildx
27
30
uses : docker/setup-buildx-action@v3
28
31
32
+ - name : Prepare
33
+ run : |
34
+ platform=${{ matrix.platform }}
35
+ echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
36
+
29
37
- name : Generate Docker metadata
30
38
id : metadata
31
39
uses : docker/metadata-action@v5
@@ -51,20 +59,25 @@ jobs:
51
59
build-args : |
52
60
TARGETPLATFORM=${{ matrix.platform }}
53
61
CCARCH=${{ matrix.ccarch }}
54
-
62
+
55
63
- name : Export digest
56
64
run : |
57
- mkdir -p /tmp /digests
65
+ mkdir -p ${{ runner.temp }} /digests
58
66
digest="${{ steps.build.outputs.digest }}"
59
- touch "/tmp/digests/${digest#sha256:}"
67
+ touch "${{ runner.temp }}/digests/${digest#sha256:}"
68
+ # - name: Export digest
69
+ # run: |
70
+ # mkdir -p /tmp/digests
71
+ # digest="${{ steps.build.outputs.digest }}"
72
+ # touch "/tmp/digests/${digest#sha256:}"
60
73
61
74
- name : Upload digest
62
75
uses : actions/upload-artifact@v4
63
76
with :
64
- name : digests
65
- path : /tmp /digests/*
66
- if-no-files-found : error
67
- retention-days : 1
77
+ name : digests-${{ env.PLATFORM_PAIR }}
78
+ path : ${{ runner.temp }} /digests/*
79
+ if-no-files-found : error
80
+ retention-days : 1
68
81
69
82
merge :
70
83
needs : build
@@ -95,10 +108,20 @@ jobs:
95
108
password : ${{ secrets.GITHUB_TOKEN }}
96
109
97
110
- name : Create manifest list and push
98
- working-directory : /tmp /digests
111
+ working-directory : ${{ runner.temp }} /digests
99
112
run : |
100
113
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
101
114
$(printf 'ghcr.io/zargarzadehm/oracle-core@sha256:%s ' *)
115
+
102
116
- name : Inspect image
103
117
run : |
104
- docker buildx imagetools inspect ghcr.io/zargarzadehm/oracle-core:${{ steps.metadata.outputs.version }}
118
+ docker buildx imagetools inspect ghcr.io/zargarzadehm/oracle-core:${{ steps.meta.outputs.version }}
119
+
120
+ # - name: Create manifest list and push
121
+ # working-directory: /tmp/digests
122
+ # run: |
123
+ # docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
124
+ # $(printf 'ghcr.io/zargarzadehm/oracle-core@sha256:%s ' *)
125
+ # - name: Inspect image
126
+ # run: |
127
+ # docker buildx imagetools inspect ghcr.io/zargarzadehm/oracle-core:${{ steps.metadata.outputs.version }}
0 commit comments