mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-24 00:05:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user