Docker Release #5
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: Docker Release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
release: | |
description: "Release (e.g., v1.9.0)" | |
required: true | |
permissions: | |
packages: write | |
contents: read | |
jobs: | |
docker-release: | |
runs-on: ubuntu-latest | |
env: | |
RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Docker Images | |
run: make VERSION=${RELEASE:1} GITHUB_USER=${{ github.actor }} -f Makefile.docker release | |
- name: Set up qemu | |
uses: docker/setup-qemu-action@v2 | |
- name: Login registry | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Show Docker Images | |
run: docker images | |
- name: Publish Docker Images | |
run: make VERSION=${RELEASE:1} GITHUB_USER=${{ github.actor }} -f Makefile.docker docker-push |