Build and release Systemd sysext images #3
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: Build and release Systemd sysext images | |
on: | |
push: | |
tags: | |
- 'latest' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
# allow the action to create a release | |
contents: write | |
steps: | |
# checkout the sources | |
- uses: actions/checkout@v4 | |
with: | |
path: bakery | |
# prepare build host | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: install prerequisites | |
run: | | |
set -euxo pipefail | |
sudo apt update -qq && sudo apt install -yqq \ | |
curl \ | |
jq \ | |
squashfs-tools \ | |
xz-utils \ | |
gawk | |
- name: build release artifacts | |
run: | | |
pushd bakery | |
./release_build.sh | |
- name: delete previous latest release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pushd bakery | |
gh release delete latest --cleanup-tag | |
- name: create a new latest release with all artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: bakery/Release.md | |
files: | | |
bakery/SHA256SUMS | |
bakery/*.raw | |
bakery/*.conf |