Merge pull request #117 from rancher-sandbox/alpine-3.19 #151
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
- 'test-v*' | |
pull_request: | |
env: | |
ALPINE_VERSION: 3.19.0 | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
persist-credentials: false | |
- name: Install the arm64 emulator for binfmt_misc | |
run: | | |
docker run --privileged --rm tonistiigi/binfmt --install arm64 | |
- name: Build the mkimage images | |
run: | | |
make mkimage ARCH=x86_64 | |
make mkimage ARCH=aarch64 | |
- name: Build the std edition | |
run: | | |
make iso EDITION=std ARCH=x86_64 | |
make iso EDITION=std ARCH=aarch64 | |
- name: Build the rd edition | |
run: | | |
make iso EDITION=rd ARCH=x86_64 | |
make iso EDITION=rd ARCH=aarch64 | |
- name: Create release | |
if: github.event_name != 'pull_request' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Note "folded" style; requires a blank line to insert actual newline | |
run: > | |
tag="${GITHUB_REF##*/}" | |
hub release create | |
-a iso/alpine-lima-std-${ALPINE_VERSION}-aarch64.iso | |
-a iso/alpine-lima-std-${ALPINE_VERSION}-aarch64.iso.sha512sum | |
-a iso/alpine-lima-std-${ALPINE_VERSION}-x86_64.iso | |
-a iso/alpine-lima-std-${ALPINE_VERSION}-x86_64.iso.sha512sum | |
-a iso/alpine-lima-rd-${ALPINE_VERSION}-aarch64.iso | |
-a iso/alpine-lima-rd-${ALPINE_VERSION}-aarch64.iso.sha512sum | |
-a iso/alpine-lima-rd-${ALPINE_VERSION}-x86_64.iso | |
-a iso/alpine-lima-rd-${ALPINE_VERSION}-x86_64.iso.sha512sum | |
-m "${tag}" --draft "${tag}" |