-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b756dd
commit 23e17dd
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Deploy to Tekdi-QA Server | ||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- release-1.0.0 | ||
jobs: | ||
deploy: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Deploy Stack | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST_NAME_TEKDI_QA }} | ||
username: ${{ secrets.USERNAME_TEKDI_QA }} | ||
key: ${{ secrets.EC2_SSH_KEY_TEKDI_QA }} | ||
port: ${{ secrets.PORT_TEKDI_QA }} | ||
script: | | ||
cd ${{ secrets.TARGET_DIR_TEKDI_QA }} | ||
if [ -f .env ]; then | ||
rm .env | ||
fi | ||
echo "${{ secrets.QA_ENV }}" > .env | ||
ls -ltra | ||
./deploy.sh |