Add build and deploy action
All checks were successful
Build and Deploy / build-and-push (push) Successful in 24s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 24s
This commit is contained in:
34
.gitea/workflows/build-and-deploy.yaml
Normal file
34
.gitea/workflows/build-and-deploy.yaml
Normal file
@@ -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 }}"
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user