Deploy editor to test environment #212
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 test environment | |
| on: | |
| workflow_run: | |
| workflows: [Build and publish Docker images] | |
| types: [completed] | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Execute remote ssh commands using ssh key | |
| uses: appleboy/[email protected] | |
| with: | |
| host: ${{ secrets.HOST_TEST }} | |
| 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 |