mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2026-04-22 15:07:30 +08:00
fix: build version tag
This commit is contained in:
@@ -8,9 +8,6 @@ jobs:
|
||||
build-static:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
@@ -40,7 +37,7 @@ jobs:
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: false
|
||||
automatic_release_tag: ${{ steps.get_version.outputs.VERSION }}
|
||||
automatic_release_tag: ${{ github.ref_name }}
|
||||
files: |
|
||||
dist/*
|
||||
- name: Latest Release
|
||||
@@ -61,5 +58,5 @@ jobs:
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
run: |
|
||||
echo "${password}" | ko login docker.io --username ${username} --password-stdin
|
||||
ko build ./cmd/frpp --sbom=none --bare -t ${{ steps.get_version.outputs.VERSION }}
|
||||
ko build ./cmd/frpp --sbom=none --bare -t ${{ github.ref_name }}
|
||||
ko build ./cmd/frpp --sbom=none --bare -t latest
|
||||
@@ -8,9 +8,6 @@ jobs:
|
||||
build-static:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
@@ -46,5 +43,5 @@ jobs:
|
||||
run: |
|
||||
mv .ko.workerd.yaml .ko.yaml
|
||||
echo "${password}" | ko login docker.io --username ${username} --password-stdin
|
||||
ko build ./cmd/frpp --sbom=none --bare -t ${{ steps.get_version.outputs.VERSION }}-workerd
|
||||
ko build ./cmd/frpp --sbom=none --bare -t ${{ github.ref_name }}-workerd
|
||||
ko build ./cmd/frpp --sbom=none --bare -t latest-workerd
|
||||
|
||||
@@ -21,6 +21,10 @@ GIT_COMMIT="$(git rev-parse HEAD)"
|
||||
VERSION="$(git describe --tags --abbrev=0 | tr -d '\n')"
|
||||
GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
if [[ -n "$GITHUB_REF_NAME" ]]; then
|
||||
VERSION="$GITHUB_REF_NAME"
|
||||
fi
|
||||
|
||||
# Parse arguments
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case $1 in
|
||||
|
||||
Reference in New Issue
Block a user