forked from siderolabs/talos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Talos Image | ||
|
||
on: | ||
push: | ||
branches: [ 'turingrk1', 'release-*' ] | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
talos-image: | ||
runs-on: buildjet-4vcpu-ubuntu-2204-arm | ||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
issues: read | ||
packages: write | ||
pull-requests: read | ||
|
||
steps: | ||
- uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# need history for `git describe` to work for Talos `Makefile` | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Build and push Talos installer image | ||
run: make installer | ||
env: | ||
PUSH: '1' | ||
USERNAME: ${{ github.actor }} | ||
PLATFORM: linux/arm64 | ||
PROGRESS: plain | ||
CI_ARGS: "--cache-from=ghcr.io/${{ github.actor }}/installer:cache --cache-to=ghcr.io/${{ github.actor }}/installer:cache" | ||
|
||
- name: Build and push Talos imager image | ||
run: make imager | ||
env: | ||
PUSH: '1' | ||
USERNAME: ${{ github.actor }} | ||
PLATFORM: linux/arm64 | ||
INSTALLER_ARCH: arm64 | ||
PROGRESS: plain | ||
CI_ARGS: "--cache-from=ghcr.io/${{ github.actor }}/imager:cache --cache-to=ghcr.io/${{ github.actor }}/imager:cache" | ||
|
||
- name: release-notes | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
mkdir -p _out | ||
make release-notes | ||
- name: Build an turing-rk1 flashable image | ||
run: make sbc-turing_rk1 | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
PLATFORM: linux/arm64 | ||
PROGRESS: plain | ||
IMAGER_ARGS: "--system-extension-image ghcr.io/nberlee/rk3588:v1.6.0-beta.1-12-g3264178" | ||
|
||
- name: Build an turing-rk1 installer | ||
run: | | ||
make sbc-installer | ||
curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.18.0/go-containerregistry_Linux_x86_64.tar.gz" | tar -zxv -C /usr/local/bin/ crane | ||
crane push $(ARTIFACTS)/installer-$${arch}.tar ghcr.io/nberlee/installer:v1.6.3-test | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
PLATFORM: linux/arm64 | ||
PROGRESS: plain | ||
IMAGER_ARGS: "--system-extension-image ghcr.io/nberlee/rk3588:v1.6.0-beta.1-12-g3264178" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: image-turing-rk1 | ||
path: _out/*.raw.xz | ||
if-no-files-found: error | ||
|
||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: crazy-max/ghaction-github-release@v2 | ||
with: | ||
body_path: _out/RELEASE_NOTES.md | ||
draft: "true" | ||
files: | | ||
_out/metal-turing_rk1-arm64.raw.xz |
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