From 5d2b8b9a109b751eb658832db3c1bd3c2ef79039 Mon Sep 17 00:00:00 2001 From: "KaungThant (aka) DevKTOps" Date: Tue, 15 Oct 2024 20:29:06 +0700 Subject: [PATCH] Create main.yml for UAT Deployment --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..234a0f4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +name: Deploy UAT +on: + push: + branches: + - master +jobs: + deploy_uat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Deploy to UAT Server + uses: appleboy/ssh-action@v1.1.0 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSHKEY }} + script: "cd /home/ubuntu/devops && ./deploy.sh"