From 95ab47c76bd5681e89a73f2d5e57eedac93c2a85 Mon Sep 17 00:00:00 2001 From: Kayla Altepeter Date: Mon, 4 Mar 2024 13:16:05 -0600 Subject: [PATCH] Revert "Update docker-publish.yml (#61)" This reverts commit 241d835416a486df50737948db8c067d4be27ac0. --- .github/workflows/docker-publish.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a277314..ebd238b 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -10,8 +10,6 @@ on: branches: [ main ] release: types: [published] - workflow_dispatch: - env: # Use docker.io for Docker Hub if empty @@ -63,21 +61,13 @@ jobs: # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' + if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Log into another registry ${{ env.REGISTRY }} - if: github.event_name == 'workflow_dispatch' - uses: docker/login-action@v2 - with: - registry: ${{ secrets.DS_DOCKER_HOST }} - username: ${{ secrets.DS_DOCKER_USER }} - password: ${{ secrets.DS_DOCKER_PW }} - # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action - name: Extract Docker metadata @@ -127,14 +117,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - name: Push to DS Docker - run: | - echo ${{ steps.meta.outputs.tags }} - # docker buildx imagetools create \ - # --tag ${{ secrets.DS_DOCKER_HOST }}/user/app:latest \ - # --tag ${{ secrets.DS_DOCKER_HOST }}/app:1.0.0 \ - # user/app:latest - # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish