mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
build: inject tag version to .env
This commit is contained in:
@@ -53,6 +53,10 @@ jobs:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Inject tag version of UI
|
||||
run: |
|
||||
echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
||||
@@ -51,6 +51,10 @@ jobs:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Inject tag version of UI
|
||||
run: |
|
||||
echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
||||
@@ -19,8 +19,9 @@ jobs:
|
||||
with:
|
||||
node-version: 20.11.0
|
||||
|
||||
- name: Build WebUI
|
||||
- name: Build UI
|
||||
run: |
|
||||
echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env
|
||||
npm --prefix=./ui ci
|
||||
npm --prefix=./ui run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user