Add README, GitHub deploy action #4
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
# Copyright The Linux Foundation and each contributor. | |
# SPDX-License-Identifier: MIT | |
--- | |
name: Publish | |
'on': | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.x' | |
- uses: actions/checkout@v4 | |
- uses: ko-build/[email protected] | |
- run: | | |
ko build --bare --platform linux/amd64,linux/arm64 -t latest -t ${{ github.sha }} --sbom spdx . |