-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sha256sum file to release assets
Signed-off-by: bo.jiang <[email protected]>
- Loading branch information
Showing
6 changed files
with
146 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Assets sha256sum Generate | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: set-matrix | ||
run: | | ||
echo "matrix=$(jq -c . < .github/workflows/os-pkgs-matrix.json)" >> $GITHUB_OUTPUT | ||
os-pkgs-sha256sum: | ||
runs-on: ubuntu-latest | ||
needs: matrix | ||
strategy: | ||
fail-fast: true | ||
max-parallel: 1 | ||
matrix: | ||
include: ${{ fromJSON(needs.matrix.outputs.matrix) }} | ||
steps: | ||
- name: Download os-pkgs sha256sum files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: os-pkgs-sha256sum-${{ matrix.name }}-key | ||
- name: Download offline sha256sum file | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: offline-sha256sum-key | ||
- name: Integrate all sha256sum for os-pkgs | ||
run: | | ||
cat sha256sum-os-pkg-${{ matrix.name }}-${{ github.ref_name }}.txt >> sha256sum-offline-${{ github.ref_name }}.txt | ||
- name: Upload offline sha256sum file | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: offline-sha256sum-key | ||
overwrite: true | ||
retention-days: 1 | ||
path: | | ||
sha256sum-offline-${{ github.ref_name }}.txt | ||
upload-sha256sum-file: | ||
runs-on: ubuntu-latest | ||
needs: os-pkgs-sha256sum | ||
steps: | ||
- name: Download offline sha256sum file | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: offline-sha256sum-key | ||
- name: Rename sha256sum | ||
run: | | ||
mv sha256sum-offline-${{ github.ref_name }}.txt sha256sum.txt | ||
- name: upload sha256sum file | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
sha256sum.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ "name": "redhat7", "dockerfile":"build/os-packages/Dockerfile.redhat7"}, | ||
{ "name": "redhat8", "dockerfile":"build/os-packages/Dockerfile.redhat8"}, | ||
{ "name": "redhat9", "dockerfile":"build/os-packages/Dockerfile.redhat9"}, | ||
{ "name": "rocky9", "dockerfile":"build/os-packages/Dockerfile.rocky9"}, | ||
{ "name": "kylinv10", "dockerfile":"build/os-packages/Dockerfile.kylinv10"}, | ||
{ "name": "openeuler22.03", "dockerfile":"build/os-packages/Dockerfile.openeuler22.03"}, | ||
{ "name": "oracle8", "dockerfile":"build/os-packages/Dockerfile.oracle8"}, | ||
{ "name": "oracle9", "dockerfile":"build/os-packages/Dockerfile.oracle9"}, | ||
{ "name": "tencent31", "dockerfile":"build/os-packages/Dockerfile.tencent31"}, | ||
{ "name": "ubuntu1804", "dockerfile":"build/os-packages/Dockerfile.ubuntu1804"}, | ||
{ "name": "ubuntu2004", "dockerfile":"build/os-packages/Dockerfile.ubuntu2004"}, | ||
{ "name": "ubuntu2204", "dockerfile":"build/os-packages/Dockerfile.ubuntu2204"} | ||
] |