name: Deploy on: push: branches: [ "main" ] jobs: update: runs-on: ubuntu-latest steps: - name: Update Git Repository with: context: /home/dockeruser/swapdude-stack run: | pwd git fetch --all git reset --hard origin/main - name: Build & Deploy on docker-compose with: context: /home/dockeruser/swapdude-stack run: | docker compose up -d --build