ci: switch to Portainer auto-build (like mein118.ch)
This commit is contained in:
@@ -1,29 +1,7 @@
|
||||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login 192.168.1.183:3100 -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t 192.168.1.183:3100/adminpepe/lageplan:latest .
|
||||
|
||||
- name: Push to Registry
|
||||
run: |
|
||||
docker push 192.168.1.183:3100/adminpepe/lageplan:latest
|
||||
|
||||
- name: Redeploy via Portainer
|
||||
if: ${{ secrets.PORTAINER_WEBHOOK != '' }}
|
||||
run: |
|
||||
curl -sf -X POST "${{ secrets.PORTAINER_WEBHOOK }}" || echo "Portainer webhook failed (optional)"
|
||||
# Deployment wird von Portainer erledigt (nicht Gitea Actions).
|
||||
# Portainer Stack zeigt auf dieses Repo und baut bei Push automatisch neu.
|
||||
# Siehe docker-compose.portainer.yml für Details.
|
||||
#
|
||||
# Dieses File ist leer damit keine pending Jobs mehr entstehen.
|
||||
name: disabled
|
||||
on: workflow_dispatch
|
||||
|
||||
Reference in New Issue
Block a user