feat: use portainer hook instead of pushing image to gitea package repository
All checks were successful
Build and Deploy / build (push) Successful in 2m11s
Build and Deploy / deploy (push) Successful in 2s

This commit is contained in:
2026-05-30 23:16:49 +02:00
parent 39f549f156
commit 05eb29ad8b
3 changed files with 30 additions and 31 deletions

View File

@@ -0,0 +1,29 @@
name: Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
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 .
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Trigger Portainer webhook
run: curl -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}"