feat: fix remi rpm #11
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 publish | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Install distrobuilder | |
run: | | |
sudo apt update | |
sudo apt install -y debootstrap rsync gpg squashfs-tools git make | |
git clone https://github.com/lxc/distrobuilder.git | |
cd distrobuilder | |
make | |
sudo mv $HOME/go/bin/distrobuilder /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/distrobuilder | |
- name: Build | |
run: | | |
sudo /usr/local/bin/distrobuilder build-lxc almalinux.yaml | |
- name: Rename artifact | |
run: | | |
mv rootfs.tar.xz itsm-ng-${{ github.ref_name }}.tar.xz | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: itsm-ng-${{ github.ref_name }}.tar.xz | |
path: itsm-ng-${{ github.ref_name }}.tar.xz | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: itsm-ng-${{ github.ref_name }}.tar.xz | |
body: "New release is available" | |
name: LXC Release ${{ github.ref_name }} | |
draft: true | |
generate_release_notes: true |