mirror of
https://github.com/xiaoyaDev/xiaoya-alist.git
synced 2026-10-18 06:47:24 +08:00
4d63322c46
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
name: xiaoya glue python
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "glue_python/**"
|
|
- ".github/workflows/glue_python.yml"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Build Docker Image
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v6
|
|
with:
|
|
images: ${{ secrets.DOCKER_USERNAME }}/xiaoya-glue
|
|
tags: |
|
|
type=raw,value=python
|
|
|
|
-
|
|
name: Set Up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
|
|
-
|
|
name: Set Up Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
-
|
|
name: Login DockerHub
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
-
|
|
name: Build Image
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
context: ./glue_python
|
|
file: glue_python/Dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64/v8
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
-
|
|
name: Docker Hub Description
|
|
uses: peter-evans/dockerhub-description@v5
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: ${{ secrets.DOCKER_USERNAME }}/xiaoya-glue
|
|
short-description: 小雅Alist的相关周边
|
|
readme-filepath: ./README.md |