Deploy editor to production environment #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy editor to production environment | |
| on: workflow_dispatch | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Execute remote ssh commands using ssh key | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.HOST_PRODUCTION }} | |
| key: ${{ secrets.SSH_KEY }} | |
| username: ${{ secrets.USERNAME }} | |
| script: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| cd atag-editor | |
| git pull | |
| docker compose -f docker-compose.prod.yml up --pull always -d |