Skip to content

Updates Kubernetes APT GPG keys #332

Updates Kubernetes APT GPG keys

Updates Kubernetes APT GPG keys #332

Workflow file for this run

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 }}