From eef89640b3d428750533226580cb8009f45229c0 Mon Sep 17 00:00:00 2001 From: kenorb Date: Wed, 21 Jun 2023 00:50:41 +0100 Subject: [PATCH] Revert "Updates docker/build-push-action to v2" This reverts commit 0280a1849a71b61a10e5adf55299714ba2af98f0. --- .github/workflows/docker.yml | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 25912a59..92f69386 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -32,9 +32,6 @@ jobs: with: dockerfile: Dockerfile Docker: - defaults: - run: - shell: bash runs-on: ubuntu-latest needs: Hadolint steps: @@ -58,35 +55,28 @@ jobs: - run: docker images - name: Print GitHub actor, repository and ref run: echo "${{ github.actor }} @ ${{ github.repository }}:${{ github.ref }}" - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - name: Push to Docker Hub if: > github.repository == 'EA31337/EA-Tester' && github.event_name != 'pull_request' - uses: docker/build-push-action@v2 - with: - tags: ea31337/ea-tester:${{ github.ref_name }} - - - name: Login to GitHub Packages Docker Registry - uses: docker/login-action@v1 + uses: docker/build-push-action@v1 with: - registry: docker.pkg.github.com - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: ea31337/ea-tester + tag_with_ref: true - name: Push to GitHub Packages if: > github.repository == 'EA31337/EA-Tester' && github.event_name != 'pull_request' - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v1 with: + add_git_labels: true + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} registry: docker.pkg.github.com - tags: ea31337/ea-tester/ea-tester:${{ github.ref_name }} - + repository: ea31337/ea-tester/ea-tester + tag_with_ref: true Test-Docker: runs-on: ubuntu-latest needs: Docker