Updates Kubernetes APT GPG keys #332
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: | |
paths-ignore: [ '**.md' ] | |
pull_request: | |
paths-ignore: [ '**.md' ] | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: ['amd64', 'arm64'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.16' | |
# https://stackoverflow.com/questions/3861634/how-to-reduce-compiled-file-size | |
- name: Build | |
run: | | |
go build -ldflags="-s -w" -o node-linux-$GOARCH | |
upx node-linux-$GOARCH | |
sha256sum node-linux-$GOARCH > node-linux-$GOARCH.sha256 | |
env: | |
GOARCH: ${{ matrix.arch }} | |
- name: Upload | |
if: github.event_name == 'release' | |
run: gh release upload --clobber $TAG_NAME node-linux-$GOARCH node-linux-$GOARCH.sha256 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GOARCH: ${{ matrix.arch }} | |
TAG_NAME: ${{ github.event.release.tag_name }} |