added dyndns Docker image
Some checks failed
CI / Build dyndns docker images (push) Failing after 39s
Some checks failed
CI / Build dyndns docker images (push) Failing after 39s
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 pip.conf /var/lib/dyndns/.pip/pip.conf
|
||||||
|
|
||||||
|
USER dyndns
|
||||||
|
WORKDIR /var/lib/dyndns
|
||||||
|
RUN pipx install dyndns
|
||||||
|
ENV PATH="/var/lib/dyndns/.local/bin:$PATH"
|
3
dyndns/pip.conf
Normal file
3
dyndns/pip.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[global]
|
||||||
|
index-url = https://gitea.woggioni.net/api/packages/woggioni/pypi/simple
|
||||||
|
#extra-index-url = https://pypi.org/simple
|
Reference in New Issue
Block a user