From f6207fe67205041dd7dfb47f5375de42eb195dc6 Mon Sep 17 00:00:00 2001 From: kenorb Date: Wed, 21 Jun 2023 00:00:18 +0100 Subject: [PATCH] Fixes pushing to tag (GH-216) --- .github/workflows/docker.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 755281ab..25912a59 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -59,9 +59,6 @@ jobs: - name: Print GitHub actor, repository and ref run: echo "${{ github.actor }} @ ${{ github.repository }}:${{ github.ref }}" - - name: Get the current branch name - id: myref - run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" - name: Login to DockerHub uses: docker/login-action@v1 with: @@ -73,7 +70,7 @@ jobs: && github.event_name != 'pull_request' uses: docker/build-push-action@v2 with: - tags: ea31337/ea-tester:${{ steps.myref.outputs.branch }} + tags: ea31337/ea-tester:${{ github.ref_name }} - name: Login to GitHub Packages Docker Registry uses: docker/login-action@v1 @@ -88,7 +85,7 @@ jobs: uses: docker/build-push-action@v2 with: registry: docker.pkg.github.com - tags: ea31337/ea-tester/ea-tester:${{ steps.myref.outputs.branch }} + tags: ea31337/ea-tester/ea-tester:${{ github.ref_name }} Test-Docker: runs-on: ubuntu-latest