Skip to content

Update

Update #4

Workflow file for this run

name: Build and Push Image
on:
push:
branches: [ refactor ]
workflow_dispatch:
jobs:
build:
name: Build and push image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build Image And Push Through SSH
id: build-image
uses: LikDan/[email protected]
with:
image: 'backend:latest'
context: '.'
folder: './deploy'
destination: ${{ format('{0}@{1}', secrets.SSH_USER, secrets.SSH_HOST) }}
destination_key: ${{ secrets.SSH_KEY }}
update:
name: Update
runs-on: ubuntu-20.04
needs: build
steps:
- name: Update AWS
uses: D3rHase/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
user: ${{ secrets.SSH_USER }}
private_key: ${{ secrets.SSH_KEY }}
command: cd ./StudyumDeploy && ./update.sh backend