python-neshweb/.forgejo/workflows/build_release.yml

35 lines
942 B
YAML
Raw Permalink Normal View History

2024-07-22 10:40:07 +00:00
on:
schedule:
- cron: '0 0 * * 1'
2024-07-22 10:40:07 +00:00
push:
branches:
- 'main'
paths:
- '.forgejo/workflows/*'
- 'Dockerfile'
- 'pip.conf'
2024-07-22 10:40:07 +00:00
jobs:
build:
runs-on: dind
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
name: build-python
2024-07-22 10:40:07 +00:00
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 }}