From 4723ffb13d605540de2f58f1f60269ee5b00a86f Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sat, 19 Apr 2025 18:57:34 -0400 Subject: [PATCH] add ddns container build pipeline --- .gitea/workflows/ddns.yaml | 30 +++++++++++++++++++ .../workflows/{build.yaml => distoolbox.yaml} | 0 .gitignore | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/ddns.yaml rename .gitea/workflows/{build.yaml => distoolbox.yaml} (100%) diff --git a/.gitea/workflows/ddns.yaml b/.gitea/workflows/ddns.yaml new file mode 100644 index 0000000..0686bab --- /dev/null +++ b/.gitea/workflows/ddns.yaml @@ -0,0 +1,30 @@ +name: Podman DDNS Image +run-name: Build and Push the Podman DDNS Image +on: + push: + paths: + - active/podman_ddns/** + - .gitea/workflows/** + schedule: + - cron: '@daily' +jobs: + build-and-push-ddns: + runs-on: ubuntu-latest + if: gitea.ref == 'refs/heads/main' + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Login to Gitea Registry + uses: docker/login-action@v2 + with: + registry: gitea.reeseapps.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: ${{ gitea.workspace }}/active/podman_ddns + file: ${{ gitea.workspace }}/active/podman_ddns/Containerfile + push: true + tags: "gitea.reeseapps.com/services/ddns:latest,gitea.reeseapps.com/services/ddns:${{gitea.sha}}" + no-cache: false diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/distoolbox.yaml similarity index 100% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/distoolbox.yaml diff --git a/.gitignore b/.gitignore index 320f6ec..a13b487 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ tmp/ Unsorted/ volumes/ __pycache__/ +.pytest_cache/ +.venv/