Skip to content

Commit

Permalink
chore: 分离CI检查以便并行
Browse files Browse the repository at this point in the history
  • Loading branch information
x6eull committed Feb 27, 2025
1 parent 1383849 commit 139d9a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-test-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build-test-docker

on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: false
tags: rop2-web:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-test
name: build-test-npm

on:
push:
Expand Down Expand Up @@ -28,14 +28,3 @@ jobs:

- name: Build project
run: npm run build

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: false
tags: rop2-web:latest

0 comments on commit 139d9a0

Please sign in to comment.