fix: workflow for Systemec use
Some checks failed
Build and push / Build and push (map[name:systemec_piraeus registry:piraeus.systemec.nl]) (push) Failing after 34s

This commit is contained in:
Daan Selen
2025-12-05 05:36:32 -06:00
parent 77016209c1
commit 923b65c1e4

View File

@@ -13,7 +13,7 @@ on:
types: [published]
env:
IMAGE_NAME: paessler/multi-platform-probe
IMAGE_NAME: prtgprobe/multi-platform-probe
jobs:
docker_build:
@@ -28,17 +28,13 @@ jobs:
fail-fast: false
matrix:
variant:
- name: dockerhub
registry: "docker.io"
- name: ghcr
registry: "ghcr.io"
- name: systemec_piraeus
registry: "piraeus.systemec.nl"
steps:
- name: Set image for Docker
id: set-image
run: |
if [ "${{ matrix.variant.name }}" = "ghcr" ]; then
echo "IMAGE_TO_USE=${GITHUB_REPOSITORY}" >> $GITHUB_ENV
elif [ "${{ matrix.variant.name }}" == "dockerhub" ]; then
if [ "${{ matrix.variant.name }}" == "systemec_piraeus" ]; then
echo "IMAGE_TO_USE=${IMAGE_NAME}" >> $GITHUB_ENV
else
echo "Failing to resolve."
@@ -60,21 +56,13 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
if: matrix.variant.name == 'dockerhub'
if: matrix.variant.name == 'systemec_piraeus'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
registry: ${{ matrix.variant.registry }}
- name: Log in to Github Container Registry
if: matrix.variant.name == 'ghcr'
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ matrix.variant.registry }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
@@ -95,19 +83,3 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
- name: Generate artifact attestation
if: matrix.variant.name == 'dockerhub'
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ matrix.variant.registry }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Generate artifact attestation
if: matrix.variant.name == 'ghcr'
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ matrix.variant.registry }}/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true