From f9067454b891c62f3af4fd3df02ad420c9d2ae49 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Mon, 23 May 2022 11:56:16 +0800 Subject: [PATCH] Revert "update workflow" This reverts commit a32f75688ae1505f514116a0651edd8b430e2825. --- .github/workflows/main.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 867d1aa..c6d4e5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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,20 +90,19 @@ 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: false + push: ${{ github.event_name != 'pull_request' }} tags: ${{ matrix.tags }} cache-from: type=gha cache-to: type=gha,mode=max