chore: update workflows for porting to forgejo

This commit is contained in:
Tommy 2024-11-24 07:09:30 +01:00
parent ef8bd194fd
commit a009286418
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc

View file

@ -15,7 +15,7 @@ concurrency:
group: ${{ github.actor }}-build
env:
TALOS_VERSION : "${{ inputs.version || 'latest' }}"
TALOS_VERSION: "${{ inputs.version || 'latest' }}"
# renovate: depName=ghcr.io/siderolabs/intel-ucode
INTEL_UCODE_VERSION: 20231114
# renovate: depName=ghcr.io/siderolabs/i915-ucode
@ -24,7 +24,7 @@ env:
jobs:
check-releases:
name: Check for new releases
runs-on: ubuntu-latest
runs-on: ci-os
steps:
- name: Checkout
@ -65,7 +65,7 @@ jobs:
needs: [ check-releases ]
if: needs.check-releases.outputs.newTalosReleaseFound || github.event_name == 'workflow_dispatch'
name: Build kernel image
runs-on: ubuntu-latest
runs-on: ci-os
steps:
- name: Get pkgs release tag
@ -131,7 +131,7 @@ jobs:
needs: [ check-releases, build-kernel ]
if: needs.check-releases.outputs.newTalosReleaseFound || github.event_name == 'workflow_dispatch'
name: Build installer image
runs-on: ubuntu-latest
runs-on: ci-os
steps:
- name: Checkout
@ -185,7 +185,7 @@ jobs:
needs: [ check-releases, build-installer ]
if: needs.check-releases.outputs.newTalosReleaseFound || github.event_name == 'workflow_dispatch'
name: Build boot assets
runs-on: ubuntu-latest
runs-on: ci-os
permissions:
contents: write
@ -216,7 +216,7 @@ jobs:
push-installer-image:
needs: [ check-releases, build-boot-assets ]
name: Push installer image
runs-on: ubuntu-latest
runs-on: ci-os
permissions:
contents: read
@ -248,13 +248,13 @@ jobs:
crane push \
--platform linux/amd64 \
/tmp/talos-build-assets/installer-amd64.tar \
ghcr.io/${{ github.actor }}/installer:${{ needs.check-releases.outputs.talosReleaseTag }}
code.252.no/${{ github.actor }}/talos/apple-x86-installer:${{ needs.check-releases.outputs.talosReleaseTag }}
create-release:
needs: [ check-releases, push-installer-image ]
if: needs.check-releases.outputs.newTalosReleaseFound
name: Create a new release
runs-on: ubuntu-latest
runs-on: ci-os
permissions:
contents: write
@ -267,8 +267,8 @@ jobs:
curl -sL https://api.github.com/repos/siderolabs/talos/releases/tags/${{ needs.check-releases.outputs.talosReleaseTag }} | jq -r ".body" >> $GITHUB_OUTPUT
echo EOF >> $GITHUB_OUTPUT
- name: Create a new release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.check-releases.outputs.talosReleaseTag }}
body: ${{ steps.talos-release-body.outputs.talos_release_body }}
# - name: Create a new release
# uses: softprops/action-gh-release@v1
# with:
# tag_name: ${{ needs.check-releases.outputs.talosReleaseTag }}
# body: ${{ steps.talos-release-body.outputs.talos_release_body }}