diff --git a/.github/workflows/release_docker_hub.yml b/.github/workflows/release_docker_hub.yml index 80e6ad8bf8..9ceacdf71f 100644 --- a/.github/workflows/release_docker_hub.yml +++ b/.github/workflows/release_docker_hub.yml @@ -34,11 +34,18 @@ jobs: - name: Docker meta id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 + uses: crazy-max/ghaction-docker-meta@v2 with: images: dashpay/dashd - tag-match: v(.*) - tag-match-group: 1 + tags: | + type=match,pattern=v(\d+.\d+.\d+.\d+),group=1,enable=${{ !contains(github.event.release.tag_name, '-rc') }} + type=match,pattern=v(\d+.\d+.\d+),group=1,enable=${{ !contains(github.event.release.tag_name, '-rc') }} + type=match,pattern=v(\d+.\d+),group=1,enable=${{ !contains(github.event.release.tag_name, '-rc') }} + type=raw,value=latest,enable=${{ !contains(github.event.release.tag_name, '-rc') }} + type=match,pattern=v(.*),group=1,latest=false,enable=${{ contains(github.event.release.tag_name, '-rc') }} + type=raw,value=latest-dev,enable=${{ contains(github.event.release.tag_name, '-rc') }} + flavor: | + latest=false - name: Build and push id: docker_build