From 0148162e83062a3938a12114331d46e873c01a6d Mon Sep 17 00:00:00 2001 From: sando38 Date: Mon, 24 Jul 2023 15:56:18 +0200 Subject: [PATCH] ctr actions: partially revert ee810c2 We only want to update the DockerHub README, if it is part of processone/eturnal, not within a fork. --- .github/workflows/container-build-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/container-build-publish.yml b/.github/workflows/container-build-publish.yml index a135742f9..5ea715d73 100644 --- a/.github/workflows/container-build-publish.yml +++ b/.github/workflows/container-build-publish.yml @@ -452,6 +452,10 @@ jobs: - name: Log in to ${{ matrix.registry }} uses: docker/login-action@v2 + if: | + ( matrix.registry == 'docker.io' + && github.repository_owner == 'processone' ) + || matrix.registry == 'ghcr.io' with: registry: ${{ matrix.registry }} username: ${{ (matrix.registry == 'docker.io' @@ -497,6 +501,10 @@ jobs: ${{ env.TAG_MAJOR }} - name: Create manifest list and push + if: | + ( matrix.registry == 'docker.io' + && github.repository_owner == 'processone' ) + || matrix.registry == 'ghcr.io' working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -r '"-t " + (.tags | join(" -t "))' <<< "$DOCKER_METADATA_OUTPUT_JSON") \