Skip to content

Commit

Permalink
Fix release tar images' owner to root
Browse files Browse the repository at this point in the history
Fix #1053

Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
  • Loading branch information
s1061123 committed Jun 17, 2024
1 parent 0259301 commit 434e9b9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ jobs:
- name: COPY files
run: cp README.md LICENSE bin/

- name: Change plugin file ownership
working-directory: ./bin
run: sudo chown root:root ./*

- name: Create dist directory
run: mkdir dist

- name: Create archive file
working-directory: ./bin
run: tar cfzv ../dist/cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .
run: tar cfzpv ../dist/cni-plugins-linux-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .

- name: Create sha256 checksum
working-directory: ./dist
Expand Down Expand Up @@ -81,12 +85,16 @@ jobs:
- name: COPY files
run: cp README.md LICENSE bin/

- name: Change plugin file ownership
working-directory: ./bin
run: sudo chown root:root ./*

- name: Create dist directory
run: mkdir dist

- name: Create archive file
working-directory: ./bin
run: tar cfzv ../dist/cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .
run: tar cpfzv ../dist/cni-plugins-windows-${{ matrix.goarch }}-${{ github.ref_name }}.tgz .

- name: Create sha256 checksum
working-directory: ./dist
Expand Down

0 comments on commit 434e9b9

Please sign in to comment.