First Test
This commit is contained in:
parent
d5f6c8d64b
commit
78549910fa
5 changed files with 50 additions and 1 deletions
36
.forgejo/workflows/build_release.yml
Normal file
36
.forgejo/workflows/build_release.yml
Normal 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
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.vscode/
|
4
Dockerfile
Normal file
4
Dockerfile
Normal 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
|
|
@ -1,3 +1,3 @@
|
||||||
# python-neshweb
|
# 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
8
pip.conf
Normal 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
|
Loading…
Reference in a new issue