fix: rename workflow to deploy, and parse git rev in the dockerfile
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

This commit is contained in:
2026-06-01 22:23:41 +02:00
parent 4ce3e97727
commit 1c2d09cafc
3 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,44 @@
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 }}"