Skip to content

Commit

Permalink
build: prefix version tags with 'v'
Browse files Browse the repository at this point in the history
  • Loading branch information
isometry committed Mar 31, 2024
1 parent 7d6cf20 commit 5888b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Publish Image

on:
push:
tags: ["*"]
workflow_dispatch: {}
tags: ["v*.*.*"]

permissions:
contents: read
Expand All @@ -30,6 +29,6 @@ jobs:
- name: Run Ko
run: |
go generate ./...
ko build --bare --tags "latest,${GITHUB_REF#refs/*/}" ./cmd/server
ko build --bare --tags "latest,${GITHUB_REF#refs/tags/v}" ./cmd/server
env:
GITHUB_REF: ${{ github.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
tags: ["*"]
tags: ["v*.*.*"]

jobs:
release:
Expand Down

0 comments on commit 5888b13

Please sign in to comment.