From 923b65c1e41c8a9455cc890b6ef003218974df11 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Fri, 5 Dec 2025 05:36:32 -0600 Subject: [PATCH] fix: workflow for Systemec use --- .github/workflows/docker-build.yml | 38 ++++-------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b15af77..1a62172 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -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