added dyndns Docker image
Some checks failed
CI / Build dyndns docker images (push) Failing after 22s
Some checks failed
CI / Build dyndns docker images (push) Failing after 22s
This commit is contained in:
41
.gitea/workflows/build-dyndns.yaml
Normal file
41
.gitea/workflows/build-dyndns.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- 'dyndns/*'
|
||||
- '.gitea/workflows/build-dyndns.yaml'
|
||||
jobs:
|
||||
"Build dyndns docker images":
|
||||
runs-on: hostinger
|
||||
steps:
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3.4.0
|
||||
with:
|
||||
driver: docker-container
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
-
|
||||
name: Login to Gitea container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.woggioni.net
|
||||
username: woggioni
|
||||
password: ${{ secrets.PUBLISHER_TOKEN }}
|
||||
-
|
||||
name: Build and push dyndns images
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: "{{defaultContext}}:dyndns"
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
push: true
|
||||
pull: true
|
||||
tags: |
|
||||
"gitea.woggioni.net/woggioni/dyndns:latest"
|
||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/dyndns:buildx
|
||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/dyndns:buildx
|
||||
|
12
dyndns/Dockerfile
Normal file
12
dyndns/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM alpine:3.22
|
||||
|
||||
RUN --mount=type=cache,target=/var/cache/apk apk add python3 pipx
|
||||
RUN addgroup -S dyndns
|
||||
RUN adduser -D -S -h /var/lib/dyndns -G dyndns dyndns
|
||||
|
||||
ADD --chown=dyndns:dyndns pypirc /var/lib/dyndns/.pypirc
|
||||
|
||||
USER dyndsn
|
||||
WORKDIR /var/lib/dyndns
|
||||
RUN pipx install dyndns
|
||||
|
5
dyndns/pypirc
Normal file
5
dyndns/pypirc
Normal file
@@ -0,0 +1,5 @@
|
||||
[distutils]
|
||||
index-servers = gitea
|
||||
|
||||
[gitea]
|
||||
repository = https://gitea.woggioni.net/api/packages/woggioni/pypi/simple
|
Reference in New Issue
Block a user