mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
update workflow
This commit is contained in:
parent
73106643da
commit
a32f75688a
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
@ -72,8 +72,8 @@ jobs:
|
||||
include:
|
||||
- file: ./docker/Dockerfile_with_frontend
|
||||
tags: felinae98/nonebot-bison:main
|
||||
- file: ./docker/Dockerfile_with_frontend_sentry
|
||||
tags: felinae98/nonebot-bison:main-sentry
|
||||
# - file: ./docker/Dockerfile_with_frontend_sentry
|
||||
# tags: felinae98/nonebot-bison:main-sentry
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -90,19 +90,20 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
# - name: Login to DockerHub
|
||||
# if: github.event_name != 'pull_request'
|
||||
# uses: docker/login-action@v1
|
||||
# with:
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
#
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ${{ matrix.file }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
# push: ${{ github.event_name != 'pull_request' }}
|
||||
push: false
|
||||
tags: ${{ matrix.tags }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
Loading…
x
Reference in New Issue
Block a user