Skip to content

Manual Release

Manual Release #2

Workflow file for this run

name: Manual Release
on:
workflow_dispatch:
inputs:
version:
description: Release version (e.g., v1.2.3)
required: true
type: string
default: __TAKEN_FROM_ACTION_YML__
permissions:
contents: write
packages: write
jobs:
release:
name: Create Release
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x
- name: Create and push git tags
id: version
env:
VERSION_OVERRIDE: ${{ github.event.inputs.version }}
VERSION_SUFFIX: ""
run: |
task git:set-config
task version:tag-release
echo "REL_VERSION=$(task version:get)" >> "$GITHUB_OUTPUT"
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Install QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: amd64,arm64
- name: Get Docker commands
env:
VERSION_OVERRIDE: ${{ github.event.inputs.version }}
VERSION_SUFFIX: ""
run: task docker:cmds
- name: Build and push Docker images
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_OVERRIDE: ${{ github.event.inputs.version }}
VERSION_SUFFIX: ""
run: task docker:push
- name: Inspect image
env:
VERSION_OVERRIDE: ${{ github.event.inputs.version }}
VERSION_SUFFIX: ""
run: task docker:push:inspect
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.REL_VERSION }}
name: ${{ steps.version.outputs.REL_VERSION }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v5
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
repository: ${{ vars.DOCKER_ORG_NAME }}/${{ github.event.repository.name }}
short-description: ${{ github.event.repository.description }}