628 feature request publish docker image to ghcrio registry (#634)

This commit is contained in:
Daniel Graf
2026-01-05 09:09:56 +01:00
committed by GitHub
parent b545c06846
commit eea68dc34c
2 changed files with 11 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ permissions:
jobs:
build-and-publish-develop:
name: "Release"
name: "Build and publish develop image"
runs-on: "ubuntu-latest"
steps:

View File

@@ -5,10 +5,11 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
packages: write
jobs:
tagged-release:
name: "Release"
name: "Build Release"
runs-on: "ubuntu-latest"
steps:
@@ -43,6 +44,12 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
@@ -53,6 +60,7 @@ jobs:
with:
images: |
dedicatedcode/reitti
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}