Files
lbf-bot/.gitea/workflows/deploy.yml
Pihkaal 1c2d09cafc
All checks were successful
Build and Deploy / typecheck (push) Successful in 34s
Build and Deploy / build (push) Successful in 31s
Build and Deploy / deploy (push) Successful in 2s
fix: rename workflow to deploy, and parse git rev in the dockerfile
2026-06-01 22:23:41 +02:00

45 lines
823 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Typecheck and Lint
run: pnpm check
build:
runs-on: ubuntu-latest
needs: typecheck
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: docker build -f apps/discord-bot/Dockerfile .
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Trigger Portainer webhook
run: curl -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}"