Skip to content

Commit c9b67db

Browse files
committed
refactor: remove unused versioning inputs and streamline build process
Signed-off-by: hortison <160366376+hortison@users.noreply.github.com>
1 parent 2a1d6e2 commit c9b67db

File tree

1 file changed

+1
-53
lines changed

1 file changed

+1
-53
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,9 @@ on:
1010
- "docs/**"
1111
# - '.github/**'
1212

13-
workflow_dispatch:
14-
inputs:
15-
release-ver:
16-
description: "Stable Release Version"
17-
required: false
18-
default: "v"
19-
stripped-release-ver:
20-
description: "Stripped Stable Release Version"
21-
required: false
22-
default: ""
23-
release-channel:
24-
description: "Release Channel"
25-
required: false
26-
default: "edge"
27-
28-
env:
29-
GIT_VERSION: ${{github.event.inputs.release-ver}}
30-
GIT_STRIPPED_VERSION: ${{github.event.inputs.stripped-release-ver}}
31-
RELEASE_CHANNEL: ${{github.event.inputs.release-channel}}
32-
3313
jobs:
34-
derive-version-info:
35-
runs-on: ubuntu-24.04
36-
outputs:
37-
GIT_VERSION: ${{ steps.set-vars.outputs.GIT_VERSION }}
38-
GIT_STRIPPED_VERSION: ${{ steps.set-vars.outputs.GIT_STRIPPED_VERSION }}
39-
RELEASE_CHANNEL: ${{ steps.set-vars.outputs.RELEASE_CHANNEL }}
40-
steps:
41-
- name: Set version variables from tag
42-
id: set-vars
43-
run: |
44-
TAG_NAME="${{ github.event.release.tag_name }}"
45-
echo "Detected tag: $TAG_NAME"
46-
47-
# Strip 'v' from version tag if it exists
48-
STRIPPED_VERSION="${TAG_NAME#v}"
49-
50-
# Use 'stable' if it's a tagged release, else fallback to 'edge'
51-
if [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
52-
CHANNEL="stable"
53-
else
54-
CHANNEL="edge"
55-
fi
56-
57-
echo "GIT_VERSION=$TAG_NAME" >> $GITHUB_OUTPUT
58-
echo "GIT_STRIPPED_VERSION=$STRIPPED_VERSION" >> $GITHUB_OUTPUT
59-
echo "RELEASE_CHANNEL=$CHANNEL" >> $GITHUB_OUTPUT
60-
61-
docker-extension:
62-
needs: derive-version-info
14+
extension-build:
6315
runs-on: ubuntu-24.04
64-
env:
65-
GIT_VERSION: ${{ needs.derive-version-info.outputs.GIT_VERSION }}
66-
GIT_STRIPPED_VERSION: ${{ needs.derive-version-info.outputs.GIT_STRIPPED_VERSION }}
67-
RELEASE_CHANNEL: ${{ needs.derive-version-info.outputs.RELEASE_CHANNEL }}
6816
steps:
6917
- name: Checkout 🛎️ repo
7018
uses: actions/checkout@v4

0 commit comments

Comments
 (0)