Skip to content

Commit

Permalink
Do not update latest docker tag for pre-releases
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <[email protected]>
  • Loading branch information
nguyer committed Oct 11, 2021
1 parent 0a77fdf commit 82f6ded
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker
on:
release:
types:
- published
- [published, prereleased]

jobs:
docker:
Expand All @@ -12,10 +12,11 @@ jobs:
- uses: actions/checkout@v2

- name: Build
run: docker build -t ghcr.io/hyperledger/firefly-ethconnect:latest .
run: docker build -t ghcr.io/hyperledger/firefly-ethconnect:$GITHUB_REF .

- name: Tag release
run: docker tag ghcr.io/hyperledger/firefly-ethconnect:latest ghcr.io/hyperledger/firefly-ethconnect:$GITHUB_REF
if: github.event.action == 'published'
run: docker tag ghcr.io/hyperledger/firefly-ethconnect:latest ghcr.io/hyperledger/firefly-ethconnect:latest

- name: Push docker image
run: |
Expand Down

0 comments on commit 82f6ded

Please sign in to comment.