Upgrade CI to publish to ghcr.io and Dockerhub (#901)

* GHCR Separate Workflows

* GHCR Standalone Publishing Refinements

* Docker Hub Publishing Refinements

* Add Development Build Artefact Generation and Publishing

This only runs against non Excluded branches as to be practical.

* Fix GHCR Deployment due to Uppercase Names and Main Branch Exclusion

* Fix Github ignoring Branch filters for Develop Workflow

* Harmonise Development Artifact Workflows

* Improve Docker Hub Development Artefact Metadata
This commit is contained in:
Catalan Lover
2026-03-13 15:25:21 +01:00
committed by GitHub
parent 7ef871d3c7
commit 4344be93e8
6 changed files with 227 additions and 0 deletions
+9
View File
@@ -1,4 +1,5 @@
# SPDX-FileCopyrightText: 2024 Gnuxie <Gnuxie@protonmail.com>
# SPDX-FileCopyrightText: 2026 Catalan Lover <catalanlover@protonmail.com>
#
# SPDX-License-Identifier: CC0-1.0
@@ -16,6 +17,7 @@ env:
PLATFORMS: linux/amd64,linux/arm64
# Only push if this is main, otherwise we just want to build
PUSH: ${{ github.ref == 'refs/heads/main' }}
IMG_SOURCE: https://github.com/${{ github.repository }}
jobs:
docker-latest:
@@ -54,5 +56,12 @@ jobs:
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: ${{ env.PUSH }}
labels: |
org.opencontainers.image.source=${{ env.IMG_SOURCE }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ github.ref_name }}-${{ github.sha }}
org.opencontainers.image.ref.name=${{ github.ref_name }}
org.opencontainers.image.licenses=AFL-3.0
sbom: true
tags: |
${{ env.DOCKER_NAMESPACE }}/draupnir:develop