Compare commits
No commits in common. "main" and "3.11" have entirely different histories.
3 changed files with 19 additions and 23 deletions
|
@ -1,21 +1,11 @@
|
||||||
on:
|
on:
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 1'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- 'main'
|
- '[0-9]+\.[0-9]+'
|
||||||
paths:
|
|
||||||
- '.forgejo/workflows/*'
|
|
||||||
- 'Dockerfile'
|
|
||||||
- 'pip.conf'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: dind
|
runs-on: dind
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
|
|
||||||
name: build-python
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
@ -29,6 +19,18 @@ jobs:
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ github.ref_name }}
|
||||||
PYTHON_VERSION=${{ matrix.python-version }}
|
|
||||||
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ matrix.python-version }}
|
release:
|
||||||
|
needs: [ build ]
|
||||||
|
if: success()
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Release New Version
|
||||||
|
uses: actions/forgejo-release@v1
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
url: https://forgejo.neshweb.net
|
||||||
|
release-dir: release
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
tag: ${{ github.ref_name }}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
ARG PYTHON_VERSION=3.12
|
FROM nikolaik/python-nodejs:python3.11-nodejs21-alpine
|
||||||
|
|
||||||
FROM nikolaik/python-nodejs:python${PYTHON_VERSION}-nodejs22-alpine
|
|
||||||
RUN apk -U upgrade && apk add --no-cache git openssh
|
RUN apk -U upgrade && apk add --no-cache git openssh
|
||||||
|
|
||||||
COPY pip.conf /etc/pip.conf
|
COPY pip.conf /etc/pip.conf
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# python-neshweb
|
# python-neshweb
|
||||||
|
|
||||||
A python container bundled with NodeJS 22 based on an alpine image.
|
A Python 3.11 and NodeJS 21 container preconfigured with the correct settings to pull from PyPi indexes on Neshweb
|
||||||
|
|
||||||
Build in a matrix for Python 3.9, 3.10, 3.11 and 3.12
|
|
||||||
|
|
||||||
Comes bundled with git and OpenSSH installed as well
|
|
||||||
|
|
Loading…
Reference in a new issue