SwapDude/.github/workflows/docker-deploy.yml
Lisoveliy aebe654c38
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run
chore: init commit from GitHub
2025-05-12 19:44:33 +03:00

20 lines
440 B
YAML

name: Deploy
on:
push:
branches: [ "main" ]
jobs:
update:
runs-on: self-hosted
steps:
- name: Update Git Repository
working-directory: /home/swapdude/MainStack
run: |
pwd
git fetch --all
git reset --hard origin/main
- name: Build & Deploy on docker-compose
working-directory: /home/swapdude/MainStack
run: |
docker compose up -d --build