diff --git a/.gitea/workflows/build-and-deploy.yaml b/.gitea/workflows/build-and-deploy.yaml new file mode 100644 index 0000000..ac11a17 --- /dev/null +++ b/.gitea/workflows/build-and-deploy.yaml @@ -0,0 +1,34 @@ +name: Build and Deploy + +on: + push: + branches: + - master + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: git.ulfrx.dev + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: git.ulfrx.dev/ulfr/recipe-mockup:latest + + - name: Trigger Dockhand redeploy + run: | + curl -fsS "${{ secrets.DOCKHAND_WEBHOOK_URL }}?secret=${{ secrets.DOCKHAND_WEBHOOK_SECRET }}" diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index ec496dd..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -1,25 +0,0 @@ -services: - recipe-mockup: - build: . - container_name: recipe-mockup - restart: unless-stopped - networks: - - homelab_apps - labels: - - "traefik.enable=true" - - "traefik.docker.network=homelab_apps" - - "traefik.http.routers.recipe.rule=Host(`${RECIPE_DOMAIN}`)" - - "traefik.http.routers.recipe.entrypoints=websecure" - - "traefik.http.routers.recipe.tls=true" - - "traefik.http.routers.recipe.tls.certresolver=le" - - "traefik.http.services.recipe.loadbalancer.server.port=80" - - # Authentik Protection -# - "traefik.http.middlewares.authentik.forwardauth.address=http://authentik-server:9000/outpost.goauthentik.io/auth/traefik" -# - "traefik.http.middlewares.authentik.forwardauth.trustForwardHeader=true" -# - "traefik.http.middlewares.authentik.forwardauth.authResponseHeaders=X-authentik-username,X-authentik-groups,X-authentik-entitlements,X-authentik-email,X-authentik-name,X-authentik-uid,X-authentik-jwt,X-authentik-meta-jwks,X-authentik-meta-outpost,X-authentik-meta-provider,X-authentik-meta-app,X-authentik-meta-version" -# - "traefik.http.routers.recipe.middlewares=authentik" - -networks: - homelab_apps: - external: true \ No newline at end of file