Merge pull request #41 from Vicente-Cheng/add-sha-file-back #22
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: | |
- harvester-dev | |
tags: | |
- v* | |
pull_request: | |
jobs: | |
build: | |
name: Build images | |
runs-on: ubuntu-latest | |
container: | |
image: rancher/dapper:v0.6.0 | |
steps: | |
# Git is not in Dapper container image. Add it manually for dirty check. | |
- name: Add Git | |
run: apk add -U git | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Build binaries and SHA files | |
- name: Run dapper ci | |
run: dapper ci | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dist/artifacts/rancherd-amd64 | |
dist/artifacts/rancherd-arm64 | |
dist/artifacts/sha256sum-amd64.txt | |
dist/artifacts/sha256sum-arm64.txt |