Skip to content

Commit 05aa487

Browse files
committed
fix: permissions lost with github artifacts
Closes: #20 Signed-off-by: STRRL <[email protected]>
1 parent c33f152 commit 05aa487

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/upload_image.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: Build Chaos CoreDNS
3333
run: |
3434
echo "k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos" >> plugin.cfg
35+
# TODO: replace with the local repo, not stuck with a certain commit
3536
go mod edit -require github.com/chaos-mesh/k8s_dns_chaos@649fd5298a454eb59b6080fd670e7f7ea1f5b1b4
3637
SWAGGER=1 UI=1 make coredns
37-
chmod +x coredns
3838
3939
- name: upload coredns binary
4040
uses: actions/upload-artifact@v2
@@ -90,6 +90,8 @@ jobs:
9090
ARCH: ${{ matrix.arch }}
9191
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
9292
run: |
93+
# permissions would be lost after transfer by github artifacts, see: https://github.com/chaos-mesh/k8s_dns_chaos/issues/20
94+
chmod +x coredns
9395
docker build -t ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/chaos-coredns:$IMAGE_TAG-$ARCH .
9496
9597
- name: Upload Chaos CoreDNS

0 commit comments

Comments
 (0)