ci: updae release worlfolw
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -2,7 +2,6 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 0.**
|
|
||||||
- v0.**
|
- v0.**
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@@ -26,7 +25,12 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Get the tag name
|
name: Get the tag name
|
||||||
id: get_tag_name
|
id: get_tag_name
|
||||||
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
run: |
|
||||||
|
# Extract tag name and remove "v" if present
|
||||||
|
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
||||||
|
VERSION="${TAG_NAME#v}"
|
||||||
|
echo "VERSION=${VERSION}" >> $GITHUB_ENV
|
||||||
|
echo "BUILD_TIME=${(date -u +"%Y-%m-%dT%H:%M:%SZ")}"
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
@@ -35,8 +39,8 @@ jobs:
|
|||||||
file: "./Dockerfile"
|
file: "./Dockerfile"
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
build-args: |
|
build-args: |
|
||||||
appVersion=${{ env.TAG_NAME }}
|
appVersion=${{ env.VERSION }}
|
||||||
tags: |
|
tags: |
|
||||||
"${{vars.BUILDKIT_IMAGE}}:${{ env.TAG_NAME }}"
|
"${{vars.BUILDKIT_IMAGE}}:${{ env.VERSION }}"
|
||||||
"${{vars.BUILDKIT_IMAGE}}:latest"
|
"${{vars.BUILDKIT_IMAGE}}:latest"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user