mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 22:38:58 +00:00
🔧 chore: drop v prefix from release tags and docker image tags
This commit is contained in:
@@ -3,7 +3,7 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
tags: ["v*"]
|
||||
tags: ["[0-9]+.[0-9]+.[0-9]+"]
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
- name: Determine push conditions
|
||||
id: should_push
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "push" && ( "${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" == refs/tags/v* ) ]]; then
|
||||
if [[ "${{ github.event_name }}" == "push" && ( "${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ) ]]; then
|
||||
echo "push=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "push=false" >> "$GITHUB_OUTPUT"
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
images: ghcr.io/yuzuzensai/trollssh
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=semver,pattern=v{{version}}
|
||||
type=semver,pattern={{version}}
|
||||
type=sha,prefix=sha-,format=short
|
||||
|
||||
- name: Log in to GHCR
|
||||
|
||||
Reference in New Issue
Block a user