From 9a17e9dfa5b68d0c7f2cad0a3f74586c64c019d5 Mon Sep 17 00:00:00 2001 From: strophy <32928115+strophy@users.noreply.github.com> Date: Sat, 17 Apr 2021 22:08:45 +0200 Subject: [PATCH] Update docker tags (#4103) * feat: use github actions * use v2 meta action * adjust indentation * try conditional versions * try to remove flavor * try different order * manual suffix * manual latest * dev suffix on latest * raw latest-dev * typo * workaround latest bug * manual latest * enable build * add space * revert Dockerfile changes * use dashpay target repo --- .github/workflows/release_docker_hub.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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