Created
December 16, 2023 10:21
-
-
Save QuvonchbekBobojonov/07394d19172e40e094e44a8b62a89f82 to your computer and use it in GitHub Desktop.
Auto deployment for Github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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