mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 09:21:56 +08:00
build: inject tag version to .env
This commit is contained in:
parent
928a0443cc
commit
a239a9cd1d
4
.github/workflows/push_image.yml
vendored
4
.github/workflows/push_image.yml
vendored
@ -53,6 +53,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/push_image_next.yml
vendored
4
.github/workflows/push_image_next.yml
vendored
@ -51,6 +51,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -19,8 +19,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20.11.0
|
node-version: 20.11.0
|
||||||
|
|
||||||
- name: Build WebUI
|
- name: Build UI
|
||||||
run: |
|
run: |
|
||||||
|
echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env
|
||||||
npm --prefix=./ui ci
|
npm --prefix=./ui ci
|
||||||
npm --prefix=./ui run build
|
npm --prefix=./ui run build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user