Skip to content

fix: 当 key 非空时运行单个插件测试 #1

fix: 当 key 非空时运行单个插件测试

fix: 当 key 非空时运行单个插件测试 #1

Workflow file for this run

name: Plugin Test Container Builder
on:
push:
paths:
- "docker/**"
workflow_dispatch:
jobs:
build:
name: Docker
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker
uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Tags
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/noneflow/nonetest
tags: |
type=semver,pattern={{version}}
type=raw,value=${{ matrix.python-version }}-{{branch}}
- name: Build and Publish
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
context: ./docker
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
build-args: PYTHON_VERSION=${{ matrix.python-version }}