comment Remote Deployment

This commit is contained in:
Kittapath 2023-03-20 15:48:26 +07:00
parent da0adeab78
commit 1045294a44

View file

@ -10,7 +10,7 @@ on:
workflow_dispatch:
env:
REGISTRY: docker.frappet.com
CMS_IMAGE_NAME: demo/qualifying-exam-cms
CMS_IMAGE_NAME: demo/test-fe-exam
CMS_IMAGE_TAG: 0.2.1
jobs:
# act --workflows .github/workflows/build.yaml --job remote-image -s DOCKER_USER -s DOCKER_PASS -s SSH_PASSWORD
@ -35,21 +35,21 @@ jobs:
- name: Build and push docker image
uses: docker/build-push-action@v3
with:
context: cms
# context: cms
# platforms: linux/amd64,linux/arm64
push: true
tags: ${{env.REGISTRY}}/${{env.CMS_IMAGE_NAME}}:${{env.CMS_IMAGE_TAG}},${{env.REGISTRY}}/${{env.CMS_IMAGE_NAME}}:latest
- name: Remote Deployment
uses: appleboy/ssh-action@v0.1.8
with:
host: frappet.com
username: frappet
password: ${{ secrets.SSH_PASSWORD }}
port: 22
script: |
cd /home/frappet/docker/bma-ehr-recruit-qualifying-exam
docker-compose pull
docker-compose up -d
touch success
# - name: Remote Deployment
# uses: appleboy/ssh-action@v0.1.8
# with:
# host: frappet.com
# username: frappet
# password: ${{ secrets.SSH_PASSWORD }}
# port: 22
# script: |
# cd /home/frappet/docker/bma-ehr-recruit-qualifying-exam
# docker-compose pull
# docker-compose up -d
# touch success