cd #13
This file contains 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@v4 | |
- name: Deploy | |
uses: appleboy/ssh-action@v1.0.3 | |
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.cd.yaml docker-compose.yaml | |
docker compose pull confluence outposts-web | |
docker compose up -d --build |