Skip to content

Instantly share code, notes, and snippets.

@QuvonchbekBobojonov
Created December 16, 2023 10:21
Show Gist options
  • Save QuvonchbekBobojonov/07394d19172e40e094e44a8b62a89f82 to your computer and use it in GitHub Desktop.
Save QuvonchbekBobojonov/07394d19172e40e094e44a8b62a89f82 to your computer and use it in GitHub Desktop.
Auto deployment for Github
name: Deployment
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deployment
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
# Your run acript
docker compose -f docker-compose.yml up -d --build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment