cd #56
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: cd | |
| on: workflow_dispatch | |
| jobs: | |
| docker-compose-up: | |
| runs-on: ubuntu-latest | |
| environment: DEMO_DEPLOY | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Deploy | |
| uses: appleboy/ssh-action@v1.2.5 | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_KEY }} | |
| port: ${{ secrets.SSH_PORT }} | |
| script: | | |
| cd /workspace/outposts | |
| git reset --hard HEAD | |
| git pull origin main | |
| cp -f docker-compose.deploy-override.yml docker-compose.override.yml | |
| docker compose pull confluence outposts-web | |
| docker compose up -d --remove-orphans |