mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
.github: Fix tag
This commit is contained in:
parent
20afbc534a
commit
f75924b1a9
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -80,23 +80,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Build only (on commits)
|
- name: Build only (on commits)
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ github.ref_type != 'tag' }}
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
tags: kovetskiy/mark:latest
|
tags: kovetskiy/mark:latest
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push (on tag)
|
- name: Build and push (on tag)
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
kovetskiy/mark:${{ steps.extract_tag.outputs.tag }}
|
kovetskiy/mark:${{ github.ref_name }}
|
||||||
kovetskiy/mark:latest
|
kovetskiy/mark:latest
|
||||||
|
2
.github/workflows/goreleaser.yml
vendored
2
.github/workflows/goreleaser.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Set Up Go
|
- name: Set Up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: 1.20
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user