Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
163bcb4c
authored
Feb 04, 2026
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(workflow): enhance tag resolution and error handling in Docker image build
parent
46305ebc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
.github/workflows/docker-image-arm64.yml
+8
-3
No files found.
.github/workflows/docker-image-arm64.yml
View file @
163bcb4c
...
@@ -31,16 +31,21 @@ jobs:
...
@@ -31,16 +31,21 @@ jobs:
contents
:
read
contents
:
read
steps
:
steps
:
-
name
:
Check out
(shallow)
-
name
:
Check out
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
with
:
with
:
fetch-depth
:
1
fetch-depth
:
${{ github.event_name == 'workflow_dispatch' && 0 || 1 }}
ref
:
${{ github.event.inputs.tag || github.ref }}
-
name
:
Resolve tag & write VERSION
-
name
:
Resolve tag & write VERSION
run
:
|
run
:
|
git fetch --tags --force --depth=1
if [ -n "${{ github.event.inputs.tag }}" ]; then
if [ -n "${{ github.event.inputs.tag }}" ]; then
TAG="${{ github.event.inputs.tag }}"
TAG="${{ github.event.inputs.tag }}"
# Verify tag exists
if ! git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
echo "Error: Tag '$TAG' does not exist in the repository"
exit 1
fi
else
else
TAG=${GITHUB_REF#refs/tags/}
TAG=${GITHUB_REF#refs/tags/}
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment