Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release tar images' owner to root #1054

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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