Update Talos Linux v1.10.3

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2025-05-29 17:50:03 +02:00
parent cf87779f7b
commit f798cbd9f9
12 changed files with 139 additions and 97 deletions

View File

@@ -16,7 +16,6 @@ jobs:
contents: read
packages: write
# Run only when the PR carries the "release" label and not closed.
if: |
contains(github.event.pull_request.labels.*.name, 'release') &&
github.event.action != 'closed'
@@ -35,8 +34,36 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Extract tag from PR branch
id: get_tag
uses: actions/github-script@v7
with:
script: |
const branch = context.payload.pull_request.head.ref;
const m = branch.match(/^release-(\d+\.\d+\.\d+(?:[-\w\.]+)?)$/);
if (!m) {
core.setFailed(`❌ Branch '${branch}' does not match 'release-X.Y.Z[-suffix]'`);
return;
}
const tag = `v${m[1]}`;
core.setOutput('tag', tag);
- name: Download required release assets
run: |
mkdir -p _out/assets
gh release download ${{ steps.get_tag.outputs.tag }} \
--repo ${{ github.repository }} \
--dir _out/assets \
--pattern cozystack-installer.yaml \
--pattern nocloud-amd64.raw.xz
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List downloaded files
run: ls -lh _out/assets/
- name: Run tests
run: make manifests && make test
run: make test
finalize:
name: Finalize Release

View File

@@ -37,11 +37,16 @@ jobs:
- name: Build
run: make build
- name: Upload installer artifact
- name: Build Talos image
run: make -C packages/core/installer talos-nocloud
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: cozystack-installer
path: _out/assets/cozystack-installer.yaml
name: cozystack-artefacts
path: |
_out/assets/nocloud-amd64.raw.xz
_out/assets/cozystack-installer.yaml
test:
name: Test
@@ -59,10 +64,10 @@ jobs:
fetch-depth: 0
fetch-tags: true
- name: Download installer artifact
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: cozystack-installer
name: cozystack-artefacts
path: _out/assets/
- name: Test