forked from dr34m-cn/taosync
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 924 Bytes
/
Copy pathbuildPython.yml
File metadata and controls
36 lines (29 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build-python
on:
push:
branches: [ 'main' ]
paths: [ 'dockerfiles/python.Dockerfile' ]
workflow_dispatch: {}
env:
DOCKER_USER: syscc
DOCKER_NAME: openlistsync
jobs:
build_docker:
runs-on: ubuntu-latest
steps:
- name: 设置QEMU
uses: docker/setup-qemu-action@v3
- name: 设置Docker BuildX
uses: docker/setup-buildx-action@v3
- name: 登录到DockerHub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 构建并推送
uses: docker/build-push-action@v6
with:
file: dockerfiles/python.Dockerfile
push: true
tags: ${{ env.DOCKER_USER }}/${{ env.DOCKER_NAME }}:not-for-use-python
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x,linux/ppc64le