Skip to content

Commit

Permalink
push ref name on push tag or push latest tag on publishing release
Browse files Browse the repository at this point in the history
  • Loading branch information
NazariiDenha committed Jul 1, 2024
1 parent 6fb63ce commit a909529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- '*'
release:
types: [published]
workflow_dispatch:

jobs:
build-and-push:
Expand All @@ -24,8 +23,10 @@ jobs:
with:
images: scrolltech/l2geth
tags: |
type=semver,pattern={{version}},enable=${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
type=ref,event=tag,enable=${{ github.event_name == 'push' }}
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
flavor: |
latest=false
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit a909529

Please sign in to comment.