docker release job

This commit is contained in:
2025-04-10 02:22:31 +02:00
parent 049ddbaed3
commit 93b7cd41ec
2 changed files with 11 additions and 41 deletions

View File

@@ -2,46 +2,16 @@ name: Publish Docker image
on:
release:
types: [published]
types:
- published
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Docker Labels
id: meta
uses: docker/metadata-action@v4
with:
images: |
cupcakearmy/glyphance
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
name: Build Docker Image
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
with:
name: cupcakearmy/glyphance
push: true
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

View File

@@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true
jobs:
build-image:
docker:
name: Build Docker Image
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
with: