Skip to content

Commit

Permalink
Merge pull request #16 from tormath1/tormath1/workflow
Browse files Browse the repository at this point in the history
workflow: build and release images
  • Loading branch information
tormath1 authored Aug 2, 2023
2 parents 8ebb850 + 47a1dd5 commit d8a722f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and release Systemd sysext images
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-22.04
permissions:
# allow the action to create a release
contents: write
steps:
# checkout the sources
- uses: actions/checkout@v3
# build the images and generate a manifest
- name: build
run: |
set -euo pipefail
sudo apt update -qq && sudo apt install -yqq \
curl \
jq \
squashfs-tools \
xz-utils
images=(
"kubernetes-v1.27.4"
"docker-24.0.5"
"docker_compose-2.17.2"
"wasmtime-11.0.1"
)
for image in ${images[@]}; do
component="${image%-*}"
version="${image#*-}"
"./create_${component}_sysext.sh" "${version}" "${component}"
mv "${component}.raw" "${image}.raw"
done
sha256sum *.raw > SHA256SUMS
# create a Github release with the generated artifacts
- name: release
uses: softprops/action-gh-release@v1
with:
files: |
SHA256SUMS
*.raw

0 comments on commit d8a722f

Please sign in to comment.