mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-07-20 09:43:01 +08:00
fix ci
This commit is contained in:
parent
2dca75266d
commit
14b1b8d5dc
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -78,6 +78,7 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
env_vars: OS,PYTHON_VERSION
|
env_vars: OS,PYTHON_VERSION
|
||||||
|
|
||||||
docker-main:
|
docker-main:
|
||||||
name: Docker main
|
name: Docker main
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -104,13 +105,17 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Git Branch Name
|
||||||
|
id: git-branch-name
|
||||||
|
uses: EthanSK/git-branch-name-action@v1
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile_with_frontend
|
file: ./docker/Dockerfile_with_frontend
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: true
|
||||||
tags: felinae98/nonebot-bison:${{ env.GITHUB_REF_NAME }}
|
tags: felinae98/nonebot-bison:${{ env.GIT_BRANCH_NAME }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
@ -134,6 +139,10 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Git Branch Name
|
||||||
|
id: git-branch-name
|
||||||
|
uses: EthanSK/git-branch-name-action@v1
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -147,6 +156,6 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile_with_frontend_sentry
|
file: ./docker/Dockerfile_with_frontend_sentry
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: felinae98/nonebot-bison:${{ env.GITHUB_REF_NAME }}-sentry
|
tags: felinae98/nonebot-bison:${{ env.GIT_BRANCH_NAME }}-sentry
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
Loading…
x
Reference in New Issue
Block a user