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

build: add SHA files back #41

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
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
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