Skip to content

Commit

Permalink
Fixes pushing to tag (GH-216)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jun 20, 2023
1 parent d65d672 commit f6207fe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f6207fe

Please sign in to comment.