mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
去除无用代码
This commit is contained in:
@@ -31,17 +31,25 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Build Vue image
|
||||
- name: Set up Docker Buildx
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
run: docker build -t bqlpfy/vue-frontend ./vue-frontend
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Docker login
|
||||
- name: Log in to DockerHub
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Push Vue image
|
||||
- name: Build and push Vue multi-arch image
|
||||
if: steps.vue-changes.outputs.vue == 'true'
|
||||
run: docker push bqlpfy/vue-frontend
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--push \
|
||||
-t bqlpfy/vue-frontend \
|
||||
./vue-frontend
|
||||
|
||||
build-java:
|
||||
if: contains(github.event.head_commit.message, '[skip java]') == false
|
||||
@@ -78,14 +86,22 @@ jobs:
|
||||
working-directory: ./springboot-backend
|
||||
run: mvn clean package -DskipTests
|
||||
|
||||
- name: Build Java Docker image
|
||||
- name: Set up Docker Buildx
|
||||
if: steps.java-changes.outputs.java == 'true'
|
||||
run: docker build -t bqlpfy/springboot-backend ./springboot-backend
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Docker login
|
||||
- name: Log in to DockerHub
|
||||
if: steps.java-changes.outputs.java == 'true'
|
||||
run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Push Java image
|
||||
- name: Build and push Java multi-arch image
|
||||
if: steps.java-changes.outputs.java == 'true'
|
||||
run: docker push bqlpfy/springboot-backend
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--push \
|
||||
-t bqlpfy/springboot-backend \
|
||||
./springboot-backend
|
||||
|
||||
Reference in New Issue
Block a user