Skip to content

Commit

Permalink
.github: Fix tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Apr 3, 2023
1 parent 20afbc5 commit f75924b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ jobs:

- name: Build only (on commits)
uses: docker/build-push-action@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.ref_type != 'tag' }}
with:
push: false
tags: kovetskiy/mark:latest

- name: Login to Docker Hub
uses: docker/login-action@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.ref_type == 'tag' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push (on tag)
uses: docker/build-push-action@v4
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ github.ref_type == 'tag' }}
with:
push: true
tags: |
kovetskiy/mark:${{ steps.extract_tag.outputs.tag }}
kovetskiy/mark:${{ github.ref_name }}
kovetskiy/mark:latest
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
fetch-depth: 0
- name: Set Up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.20
- name: Run GoReleaser
Expand Down

0 comments on commit f75924b

Please sign in to comment.