Skip to content

Deploy production

Deploy production #13

name: Deploy production
on:
workflow_call:
workflow_dispatch:
jobs:
build_image:
name: Build image
uses: ./.github/workflows/build-image.yml
secrets: inherit
deploy_production:
name: Deploy production
needs: [ build_image ]
runs-on: ubuntu-latest
steps:
- name: Updating the image on the server
uses: appleboy/[email protected]
with:
host: ${{ secrets.LIVE_DEPLOY_HOST }}
username: deploy
key: ${{ secrets.LIVE_DEPLOY_KEY }}
script: |
./deploy-service.sh config-service ${{ github.sha }}