Skip to content

Commit

Permalink
Merge pull request #41 from Vicente-Cheng/add-sha-file-back
Browse files Browse the repository at this point in the history
  • Loading branch information
bk201 authored Sep 22, 2024
2 parents d3da0f6 + 254f801 commit 4f7d4c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# Build binaries
# Build binaries and SHA files
- name: Run dapper ci
run: dapper ci

Expand All @@ -30,3 +30,5 @@ jobs:
files: |
dist/artifacts/rancherd-amd64
dist/artifacts/rancherd-arm64
dist/artifacts/sha256sum-amd64.txt
dist/artifacts/sha256sum-arm64.txt
12 changes: 12 additions & 0 deletions scripts/build-sha-file
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e

source $(dirname $0)/version

cd $(dirname $0)/..

mkdir -p dist/artifacts/
pushd bin/
sha256sum rancherd-amd64 > ../dist/artifacts/sha256sum-amd64.txt
sha256sum rancherd-arm64 > ../dist/artifacts/sha256sum-arm64.txt
popd
1 change: 1 addition & 0 deletions scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ cd $(dirname $0)
./test
./validate
./package
./build-sha-file

0 comments on commit 4f7d4c5

Please sign in to comment.