fix docker image tag edge
@@ -51,13 +51,14 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- - uses: docker/metadata-action@v4
+ - name: List docker image tags
+ uses: docker/metadata-action@v4
id: smarttag
with:
images: tsuru/client
tags: |
type=match,value=latest,pattern=\d.\d.\d
- type=edge,enable={{is_default_branch}}
+ type=edge
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
@@ -74,7 +75,8 @@ jobs:
with:
commit-ish: HEAD
- - uses: docker/build-push-action@v3
+ - name: Build and Push image to docker hub
+ uses: docker/build-push-action@v3
with:
file: ./Dockerfile
build-args: |
@@ -94,7 +96,7 @@ jobs:
go-version: 1.16
- uses: actions/checkout@v1
- - name: stable release
+ - name: release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
