First Test
All checks were successful
/ build (push) Successful in 1m32s
/ release (push) Successful in 8s

This commit is contained in:
Firq 2024-07-22 12:40:07 +02:00
parent d5f6c8d64b
commit 78549910fa
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
5 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,36 @@
on:
push:
tags:
- '[0-9]+\.[0-9]+'
jobs:
build:
runs-on: dind
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
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ github.ref_name }}
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
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.vscode/

4
Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM nikolaik/python-nodejs:python3.11-nodejs21-alpine
RUN apk -U upgrade && apk add --no-cache git openssh
COPY pip.conf /etc/pip.conf

View file

@ -1,3 +1,3 @@
# python-neshweb
A Python container preconfigured with the correct settings to pull from Pypi indexes on Neshweb
A Python 3.11 and NodeJS 21 container preconfigured with the correct settings to pull from PyPi indexes on Neshweb

8
pip.conf Normal file
View file

@ -0,0 +1,8 @@
[global]
timeout = 60
index-url = https://pypi.org/simple
extra-index-url =
https://forgejo.neshweb.net/api/packages/Firq/pypi/simple/
trusted-host =
pypi.org
forgejo.neshweb.net