Skip to content

Commit

Permalink
Fix use of GITHUB_REF in docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
  • Loading branch information
nguyer committed Oct 12, 2021
1 parent dd904db commit 18ddccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build
run: docker build -t ghcr.io/hyperledger/firefly-ethconnect:$GITHUB_REF .
run: docker build -t ghcr.io/hyperledger/firefly-ethconnect:${GITHUB_REF##*/} .

- name: Tag release
if: github.event.action == 'published'
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Push docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push ghcr.io/hyperledger/firefly-ethconnect:$GITHUB_REF
docker push ghcr.io/hyperledger/firefly-ethconnect:${GITHUB_REF##*/}
- name: Push latest tag
if: github.event.action == 'published'
Expand Down

0 comments on commit 18ddccb

Please sign in to comment.