From 34da40abd6852cb104e9867026c4f5ff920e9396 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 6 Apr 2026 23:34:59 +0200 Subject: [PATCH] add gitea actions workflow to publish docker image --- .gitea/workflows/publish.yml | 25 +++++++++++++++++++++++++ docker-compose.yml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/publish.yml diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..7e01e0a --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish Docker image + +on: + push: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Log in to Gitea registry + uses: docker/login-action@v3 + with: + registry: git.d4nn13.de + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: git.d4nn13.de/d4nn13/koncad:latest diff --git a/docker-compose.yml b/docker-compose.yml index 1397211..c4153ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: koncad: - build: . + image: git.d4nn13.de/d4nn13/koncad:latest restart: unless-stopped ports: - "8080:80"