diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8cecdb1..1d0f07e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -33,6 +33,6 @@ jobs: context: . push: ${{ github.event_name != 'pull_request' }} tags: | - # set latest tag for default branch - type=raw,value=latest,enable={{is_default_branch}} + # set latest tag for main branch + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} labels: ${{ steps.meta.outputs.labels }}