From 9c1f29aaad996e865a92054de6c92529d87fad38 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Tue, 7 Jun 2022 00:46:58 +0800 Subject: [PATCH] fix ci --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbaa791..b3cd5e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,6 +98,17 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Test Build + uses: docker/build-push-action@v2 + if: github.event_name == 'pull_request' + with: + context: . + file: ./docker/Dockerfile_with_frontend + push: false + tags: felinae98/nonebot-bison:dummy + cache-from: type=gha + cache-to: type=gha,mode=max + - name: Login to DockerHub if: github.event_name != 'pull_request' uses: docker/login-action@v1 @@ -111,6 +122,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v2 + if: github.event_name != 'pull_request' with: context: . file: ./docker/Dockerfile_with_frontend