mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 23:56:36 +08:00
优化ui 添加转发诊断 移除vue前端
This commit is contained in:
@@ -11,47 +11,6 @@ on:
|
||||
- '.github/workflows/docker-build.yml'
|
||||
|
||||
jobs:
|
||||
build-vue:
|
||||
if: contains(github.event.head_commit.message, '[skip vue]') == false
|
||||
name: Build & Push Vue Frontend
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Check for Vue changes
|
||||
uses: dorny/paths-filter@v2
|
||||
id: vue-changes
|
||||
with:
|
||||
filters: |
|
||||
vue:
|
||||
- 'vue-frontend/**'
|
||||
|
||||
- name: Set up Node.js
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log in to DockerHub
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Build and push Vue multi-arch image
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--push \
|
||||
-t bqlpfy/vue-frontend \
|
||||
./vue-frontend
|
||||
|
||||
build-vite:
|
||||
if: contains(github.event.head_commit.message, '[skip vite]') == false
|
||||
name: Build & Push Vite Frontend
|
||||
|
||||
Reference in New Issue
Block a user