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
This commit is contained in:
strophy 2021-04-17 22:08:45 +02:00 committed by GitHub
parent a8bef50052
commit 9a17e9dfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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