This commit is contained in:
felinae98 2022-06-07 00:46:58 +08:00
parent 3927f0eee3
commit 3aed382d2c
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -97,6 +97,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
@ -106,10 +117,11 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v2
if: github.event_name != 'pull_request'
with:
context: .
file: ./docker/Dockerfile_with_frontend
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: felinae98/nonebot-bison:${{ env.GITHUB_REF_NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max