Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
🐛 fix incorrect image tag spec by changing previous branch name step to extract branch name then to use the extracted branch name in the image tagging step
  • Loading branch information
evanroyrees committed Dec 10, 2021
1 parent ce4080e commit 33271c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Branch name
run: echo running on branch ${GITHUB_REF##*/}
-
name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
-
name: Build and push
id: docker_build
Expand All @@ -36,7 +38,7 @@ jobs:
context: .
file: ./docker/Dockerfile
push: true
tags: evanrees/automappa:${GITHUB_REF##*/}
tags: evanrees/automappa:${{ steps.extract_branch.outputs.branch }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 33271c6

Please sign in to comment.