Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
franko4don committed Sep 20, 2024
1 parent b60d7ce commit 2dd01dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,58 +70,42 @@ jobs:
- name: Deploy Backend
if: steps.filter.outputs.backend == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend ausdce
if: steps.filter.outputs.backend-ausdce == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-ausdce && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-ausdce && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend dai
if: steps.filter.outputs.backend-dai == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-dai && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}"cd /var/www/backend-dai && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend usdc
if: steps.filter.outputs.backend-usdc == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-usdc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-usdc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend usdt
if: steps.filter.outputs.backend-usdt == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-usdt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-usdt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend wbtc
if: steps.filter.outputs.backend-wbtc == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-wbtc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-wbtc && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend weth
if: steps.filter.outputs.backend-weth == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-weth && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-weth && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Deploy Backend wnt
if: steps.filter.outputs.backend-wnt == 'true'
run: |
ssh -i id_rsa -o StrictHostKeyChecking=no -p "${{ secrets.STAGING_SSH_PORT }}" \
"${{ secrets.DEPLOY_USER }}"@"${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }}" \
"cd /var/www/backend-wnt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
ssh -i id_rsa -o StrictHostKeyChecking=no -p ${{ secrets.STAGING_SSH_PORT }} ${{ secrets.DEPLOY_USER }}@${{ secrets.ASSETCHAIN_BRIDGE_STAGING_INTERNAL_IP }} "cd /var/www/backend-wnt && git pull origin staging && yarn && yarn build && pm2 restart parse-apps.config.js"
- name: Clear Credentials
if: always()
Expand Down
2 changes: 1 addition & 1 deletion backend-wbtc/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ autoroutes(app, {

if (!process.env.TEST)
app.listen(config.port, () => {
console.log(`Server started on port ${config.port}`)
console.log(`Server started on port the ${config.port}`)
console.log(`DEBUG=${process.env.DEBUG}`)
})

Expand Down

0 comments on commit 2dd01dd

Please sign in to comment.