From 7d82a2d66bdea1901f4d485e46588c4e3b6e2a93 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Tue, 20 Aug 2024 11:44:03 +0900 Subject: [PATCH] ci(image): fix permission --- .github/workflows/docker-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 34a5f7c67..1923e88e2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -144,7 +144,7 @@ jobs: - name: Build Image (linux/amd64) run: | newcontainer=$(buildah from --platform=linux/amd64 scratch) - buildah copy $newcontainer ./artifact/x86_64-unknown-linux-musl/${{ needs.env.outputs.BINARY_NAME }} /${{ needs.env.outputs.BINARY_NAME }} + buildah copy --chmod=0755 $newcontainer ./artifact/x86_64-unknown-linux-musl/${{ needs.env.outputs.BINARY_NAME }} /${{ needs.env.outputs.BINARY_NAME }} buildah config --entrypoint='["./${{ needs.env.outputs.BINARY_NAME }}"]' $newcontainer buildah config --author="Mogyuchi" $(awk '{print "--label=" $0}' <<< "${{ steps.meta.outputs.labels }}") $newcontainer @@ -155,7 +155,7 @@ jobs: - name: Build Image (linux/arm64) run: | newcontainer=$(buildah from --platform=linux/arm64 scratch) - buildah copy $newcontainer ./artifact/aarch64-unknown-linux-musl/${{ needs.env.outputs.BINARY_NAME }} /${{ needs.env.outputs.BINARY_NAME }} + buildah copy --chmod=0755 $newcontainer ./artifact/aarch64-unknown-linux-musl/${{ needs.env.outputs.BINARY_NAME }} /${{ needs.env.outputs.BINARY_NAME }} buildah config --entrypoint='["./${{ needs.env.outputs.BINARY_NAME }}"]' $newcontainer buildah config --author="Mogyuchi" $(awk '{print "--label=" $0}' <<< "${{ steps.meta.outputs.labels }}") $newcontainer