5555 id : meta
5656 uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
5757 with :
58- images : ${{ needs.env.outputs.REGISTRY_IMAGE }}
58+ images : ${{ env.IMAGE_REGISTRY }}/${{ needs.env.outputs.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
5959 tags : |
6060 type=semver,pattern={{version}},value=${{ inputs.tag-name }}
6161 type=semver,pattern={{major}}.{{minor}},value=${{ inputs.tag-name }}
@@ -67,18 +67,19 @@ jobs:
6767 needs : [env]
6868 permissions :
6969 contents : write
70+ packages : write
7071 strategy :
7172 fail-fast : false
7273 matrix :
7374 include :
7475 - target : aarch64-unknown-linux-gnu
7576 use-cross : true
76- - platform : linux/ arm64
77+ - arch : arm64
7778 target : aarch64-unknown-linux-musl
7879 use-cross : true
7980 - target : x86_64-unknown-linux-gnu
8081 use-cross : false
81- - platform : linux/ amd64
82+ - arch : amd64
8283 target : x86_64-unknown-linux-musl
8384 use-cross : false
8485 # - os: macos-latest
@@ -123,11 +124,11 @@ jobs:
123124 dist/${{ needs.env.outputs.BINARY_NAME }}
124125 dist/${{ needs.env.outputs.BINARY_NAME }}.exe
125126 - id : build_image
126- if : ${{ needs.env.outputs.PUSH && matrix.platform }}
127+ if : ${{ needs.env.outputs.PUSH && matrix.arch }}
127128 name : Build Image
128129 uses : redhat-actions/buildah-build@v2
129130 with :
130- platforms : ${{ matrix.platform }}
131+ archs : ${{ matrix.arch }}
131132 base-image : scratch
132133 image : ${{ env.IMAGE_NAME }}
133134 tags : tmp
@@ -144,7 +145,7 @@ jobs:
144145 tags : ${{ steps.build_image.outputs.tags }}
145146 registry : ${{ env.IMAGE_REGISTRY }}/${{ needs.env.outputs.IMAGE_NAMESPACE }}
146147 username : ${{ github.actor }}
147- password : ${{ github.token }}
148+ password : ${{ secrets.GITHUB_TOKEN }}
148149
149150 - id : export-digest
150151 if : ${{ steps.push.conclusion == 'success' }}
0 commit comments