gfxv d0370f515b
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 9s
fix: portainer webhook deployment
2025-03-03 20:32:10 +03:00

30 lines
723 B
YAML

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.io
- name: Build and Push Docker Image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/web:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/web:latest
- name: Trigger Portainer Webhook
run: |
curl -X POST ${{ secrets.PORTAINER_WEBHOOK_URL }}