Skip to content

Commit 3a907d9

Browse files
committed
Corrects Fedora image push action params
1 parent b64f650 commit 3a907d9

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/ghcup.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,32 @@ jobs:
1919
- name: "Build `ghcup` image."
2020
id: "build-ghcup-image"
2121
run: |
22-
image=$(
22+
image_id=$(
2323
./ghcup/builder.sh \
2424
-a "${{ env.alpine_ver }}" \
2525
| tail -n 1
2626
)
27-
echo "::set-output name=image::${image}"
27+
echo "::set-output name=image_id::${image_id}"
28+
29+
image_name=$(
30+
buildah images --format "{{.Name}}" ${image_id}
31+
)
32+
echo "::set-output name=image_name::${image_name}"
33+
34+
image_tags=$(
35+
buildah images --format "{{.Tag}}" ${image_id}
36+
)
37+
echo "::set-output name=image_tags::${image_tags}"
2838
2939
- name: "Push `ghcup` image to the GitHub Container Registry"
3040
id: "push-ghcup-to-ghcr"
3141
uses: "redhat-actions/push-to-registry@v2"
3242
with:
33-
image: "${{ steps.build-ghcup-image.outputs.image }}"
43+
image: "${{ steps.build-ghcup-image.outputs.image_name }}"
44+
tags: "${{ steps.build-ghcup-image.outputs.image_tags }}"
45+
registry: "ghcr.io/${{ github.repository_owner }}"
3446
username: "${{ github.actor }}"
3547
password: "${{ github.token }}"
36-
registry: "ghcr.io/${{ github.repository_owner }}"
3748

3849
- name: "Print image URL."
3950
run: |

0 commit comments

Comments
 (0)