From 72354b79d7795e945f788f36c5d70256c7b98b6c Mon Sep 17 00:00:00 2001 From: Oded Ben Ozer Date: Wed, 3 Apr 2024 17:12:00 +0200 Subject: [PATCH] Revert "Update docker-publish.yml" This reverts commit 896ed6e625fdd0d924067aea24079943ba986c30. --- .github/workflows/docker-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index dda67677..c4d6fc09 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -61,6 +61,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Log into Docker Hub registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action @@ -72,6 +78,8 @@ jobs: with: images: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + wayfaiross/telefonistka + # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action