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"