2021-05-15 21:29:47 +02:00
|
|
|
name: build python
|
2021-05-15 21:26:45 +02:00
|
|
|
on:
|
2021-09-23 00:35:21 +02:00
|
|
|
workflow_dispatch:
|
2021-05-15 21:29:47 +02:00
|
|
|
schedule:
|
2022-06-28 03:23:18 +02:00
|
|
|
- cron: "0 0 1 * *"
|
2021-05-15 21:26:45 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-05-15 21:29:47 +02:00
|
|
|
- python/**
|
2021-05-15 21:26:45 +02:00
|
|
|
jobs:
|
|
|
|
push:
|
|
|
|
name: "yolks:python_${{ matrix.tag }}"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
tag:
|
|
|
|
- 3.7
|
|
|
|
- 3.8
|
|
|
|
- 3.9
|
2021-11-15 15:26:11 +01:00
|
|
|
- '3.10'
|
2022-11-21 19:28:26 +01:00
|
|
|
- '3.11'
|
2021-05-15 21:26:45 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-11-15 15:36:19 +01:00
|
|
|
# Setup QEMU for ARM64 Build
|
|
|
|
- uses: docker/setup-qemu-action@v1
|
2021-05-15 21:26:45 +02:00
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
with:
|
|
|
|
version: "v0.5.1"
|
|
|
|
buildkitd-flags: --debug
|
|
|
|
- uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./python
|
|
|
|
file: ./python/${{ matrix.tag }}/Dockerfile
|
2021-11-15 15:36:19 +01:00
|
|
|
platforms: linux/amd64, linux/arm64
|
2021-05-15 21:26:45 +02:00
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
ghcr.io/pterodactyl/yolks:python_${{ matrix.tag }}
|