mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-05-08 00:53:21 +02:00
feat: add configuration support, update docs (#18)
* chore: remove duplicated import Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> * chore: rename bcm273x -> bcm2711 to avoid confusion Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> * feat: add configuration support Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> * docs: update docs & add install script Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> * fix: split workflows until release-please is setup on org level Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> --------- Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: release
|
||||
name: release-please
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -17,59 +17,3 @@ jobs:
|
||||
release-type: simple # actual releasing is handled by goreleaser
|
||||
package-name: computeblade-agent
|
||||
skip-github-release: true # GH release is created by goreleaser
|
||||
outputs:
|
||||
release_created: ${{ steps.release-please.outputs.release_created }}
|
||||
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- release-please
|
||||
if: needs.release-please.outputs.release_created
|
||||
steps:
|
||||
# Checkout code (full history)
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# Setup golang with caching
|
||||
- name: Setup Golang
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: stable
|
||||
- id: go-cache-paths
|
||||
run: |
|
||||
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
|
||||
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
|
||||
- name: Go Build Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.go-cache-paths.outputs.go-build }}
|
||||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
|
||||
- name: Go Mod Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.go-cache-paths.outputs.go-mod }}
|
||||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
|
||||
|
||||
# Setup docker buildx
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Install cosign
|
||||
- name: Install Cosign
|
||||
uses: sigstore/cosign-installer@v3
|
||||
|
||||
# Run goreleaser
|
||||
- name: Goreleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
with:
|
||||
version: latest
|
||||
args: release --clean
|
||||
env:
|
||||
COSIGN_YES: "true"
|
||||
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user