Release #44
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: | |
workflow_dispatch: | |
inputs: | |
version: | |
required: true | |
type: string | |
description: "Runtipi version (v3.0.0, v3.0.0-beta.5...)" | |
distinct_id: | |
type: string | |
description: "Distinct ID" | |
required: false | |
jobs: | |
create-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: echo distinct ID ${{ github.event.inputs.distinct_id }} | |
run: echo ${{ github.event.inputs.distinct_id }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: ${{ github.event.inputs.version }} | |
build-image: | |
runs-on: ubuntu-latest | |
needs: create-tag | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Update repositories | |
run: sudo apt update | |
- name: Install apt requirements | |
run: sudo apt install coreutils quilt parted qemu-user-static debootstrap zerofree zip dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc qemu-utils kpartx gpg pigz sed -y | |
- name: Set runtipi version | |
run: | | |
sed -i "s|RUNTIPI_VERSION=runtipi_version # Specify a version|RUNTIPI_VERSION=${{ github.event.inputs.version }}|" config | |
- name: Build Image | |
run: ./build-docker.sh | |
- name: Upload the image | |
uses: actions/upload-artifact@v3 | |
with: | |
name: image | |
path: deploy/ | |
publish-release: | |
runs-on: ubuntu-latest | |
needs: [create-tag, build-image] | |
steps: | |
- name: Download image | |
uses: actions/download-artifact@v3 | |
with: | |
name: image | |
path: image/ | |
- name: Get image name | |
id: get_img | |
run: | | |
image=$(find image/ -iname *.zip) | |
echo "img_name=${image}" >> $GITHUB_OUTPUT | |
- name: Rename image | |
run: | | |
mv ${{ steps.get_img.outputs.img_name }} ./runtipi-os-${{ github.event.inputs.version }}.zip | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
body: | | |
## Release Notes | |
**Improvements** | |
- Update runtipi version to ${{ github.event.inputs.version }} | |
## How to update | |
If you are already running runtipi os you can just ssh to the raspberry pi and update the os by running ```cd runtipi/ && ./runtipi-cli update ${{ github.event.inputs.version }} && ./runtipi-cli start``` | |
Please report any bugs or issues with the os so we can fix the as soon as possible. | |
tag_name: ${{ github.event.inputs.version }} | |
name: Runtipi OS ${{ github.event.inputs.version }} | |
files: | | |
runtipi-os-${{ github.event.inputs.version }}.zip |