Skip to content

Test variable

Test variable #6

Workflow file for this run

name: 'Alpine'
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
release: [
{distro: "alpine", version: "3.16"},
{distro: "alpine", version: "3.17"},
{distro: "alpine", version: "3.18"},
{distro: "alpine", version: "3.19"},
{distro: "alpine", version: "edge"}
]
os: [
# {arch: "aarch64", builder: "warp-ubuntu-latest-arm64-2x"},
{arch: "x86_64", builder: "ubuntu-latest"}
]
runs-on: ${{matrix.os.builder}}
env:
ImageOS: ubuntu22
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Serial
id: generate-serial
run: |
echo "serial=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: Setup Distrobuilder
run: |
sudo snap install distrobuilder --classic
- name: Build Image
run: |

Check failure on line 43 in .github/workflows/alpine.yml

View workflow run for this annotation

GitHub Actions / Alpine

Invalid workflow file

The workflow is not valid. .github/workflows/alpine.yml (Line: 43, Col: 14): Unrecognized named-value: 'GITHUB_RUN_NUMBER'. Located at position 1 within expression: GITHUB_RUN_NUMBER .github/workflows/alpine.yml (Line: 50, Col: 14): Unrecognized named-value: 'GITHUB_RUN_NUMBER'. Located at position 1 within expression: GITHUB_RUN_NUMBER
sudo distrobuilder build-incus images/${{matrix.release.distro}}.yml rootfs -o image.serial=${{ steps.generate-serial.outputs.serial }}-${{GITHUB_RUN_NUMBER}} -o image.architecture=${{matrix.os.arch}} -o image.release=${{matrix.release.version}}
- name: Setup IcePAK
uses: upmaru/icepak@develop
- name: Push
run: |
icepak push --path rootfs --serial ${{ steps.generate-serial.outputs.serial }}-${{GITHUB_RUN_NUMBER}} --os ${{matrix.release.distro}} --arch ${{matrix.os.arch}} --release ${{matrix.release.version}} --variant default
env:
POLAR_AUTH_KEY: ${{ secrets.POLAR_AUTH_KEY }}
POLAR_ENDPOINT: ${{ env.POLAR_ENDPOINT }}