34 lines
950 B
YAML
34 lines
950 B
YAML
on:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- '.forgejo/workflows/*'
|
|
- 'Dockerfile'
|
|
- 'pip.conf'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: dind
|
|
strategy:
|
|
matrix:
|
|
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
|
|
name: build-python
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Log into Docker Package Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: forgejo.neshweb.net
|
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
|
- name: Build and push to Docker Package Registry
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
build-args: |
|
|
PYTHON_VERSION=${{ matrix.python-version }}
|
|
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ matrix.python-version }}
|