11name : " `ghcup` image"
22
3+ # FIXME: Re-enable this workflow before merging!
34on :
45 # FIXME: Remove this before merging!
56 pull_request : { branches: [ "master" ] }
1617 - name : " Check this repository out."
1718 uses : " actions/checkout@v2"
1819
19- - name : " Build `ghcup` image."
20- id : " build-ghcup- image"
20+ - name : " Download `ghcup` and publish an image containing it ."
21+ id : " build-image"
2122 run : |
2223 image_id=$(
2324 ./ghcup/builder.sh \
2930 image_name=$(
3031 buildah images --format "{{.Name}}" ${image_id}
3132 )
32-
3333 # NOTE: This parameter expansion drops the leading `localhost/` that
3434 # `buildah` (and other OCI tools) prepend to local image names.
3535 echo "::set-output name=image_name::${image_name#*/}"
@@ -40,15 +40,15 @@ jobs:
4040 echo "::set-output name=image_tags::${image_tags}"
4141
4242 - name : " Push `ghcup` image to the GitHub Container Registry"
43- id : " push-ghcup- to-ghcr"
43+ id : " push-to-ghcr"
4444 uses : " redhat-actions/push-to-registry@v2"
4545 with :
46- image : " ${{ steps.build-ghcup- image.outputs.image_name }}"
47- tags : " ${{ steps.build-ghcup -image.outputs.image_tags }}"
46+ image : " ${{ steps.build-image.outputs.image_name }}"
47+ tags : " latest ${{ steps.build-image.outputs.image_tags }}"
4848 registry : " ghcr.io/${{ github.repository_owner }}"
4949 username : " ${{ github.actor }}"
5050 password : " ${{ github.token }}"
5151
5252 - name : " Print image URL."
5353 run : |
54- echo "Image pushed to ${{ steps.push-ghcup- to-ghcr.outputs.registry-paths }}"
54+ echo "Image pushed to ${{ steps.push-to-ghcr.outputs.registry-paths }}"
0 commit comments