Skip to content

Commit

Permalink
ci: 修复 nonetest 发布失败的问题 (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Oct 22, 2024
1 parent b50e206 commit 7c9978d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
paths:
- "docker/**"
pull_request:
paths:
- "docker/**"
workflow_dispatch:

jobs:
Expand All @@ -13,6 +16,7 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false

steps:
- name: Checkout
Expand All @@ -22,6 +26,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Github Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -32,16 +37,16 @@ jobs:
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/noneflow/nonetest
images: ghcr.io/nonebot/nonetest
tags: |
type=semver,pattern={{version}}
type=raw,value=${{ matrix.python-version }}-{{branch}}
- name: Build and Publish
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./docker
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
build-args: PYTHON_VERSION=${{ matrix.python-version }}

0 comments on commit 7c9978d

Please sign in to comment.