This commit is contained in:
parent
b2d93034dc
commit
e809dfde4a
1 changed files with 11 additions and 0 deletions
|
|
@ -47,3 +47,14 @@ jobs:
|
||||||
file: ./Services/Dockerfile
|
file: ./Services/Dockerfile
|
||||||
tags: ${{ env.CONTAINER_IMAGE_NAME }}:latest,${{ env.CONTAINER_IMAGE_NAME }}:${{ env.IMAGE_VERSION }}
|
tags: ${{ env.CONTAINER_IMAGE_NAME }}:latest,${{ env.CONTAINER_IMAGE_NAME }}:${{ env.IMAGE_VERSION }}
|
||||||
push: true
|
push: true
|
||||||
|
- name: Remote Deploy
|
||||||
|
uses: appleboy/ssh-action@v1.2.1
|
||||||
|
with:
|
||||||
|
host: ${{ vars.SSH_DEPLOY_HOST }}
|
||||||
|
port: ${{ vars.SSH_DEPLOY_PORT }}
|
||||||
|
username: ${{ secrets.SSH_DEPLOY_USER }}
|
||||||
|
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
||||||
|
script: |
|
||||||
|
cd ~/repo
|
||||||
|
./replace-env.sh API_ORG "${{ env.IMAGE_VERSION }}"
|
||||||
|
./deploy.sh hrms-api-org
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue