Files
pihkaal-me/.gitea/workflows/deploy.yml
Pihkaal 05eb29ad8b
All checks were successful
Build and Deploy / build (push) Successful in 2m11s
Build and Deploy / deploy (push) Successful in 2s
feat: use portainer hook instead of pushing image to gitea package repository
2026-05-30 23:16:49 +02:00

30 lines
515 B
YAML

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 }}"