static file headers #40
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 to Production | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Deploy Docker Compose to Server | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Create pem | |
| run: echo "${{ secrets.DEPLOY_PEM }}" > deploy.pem && chmod 400 deploy.pem | |
| - name: SSH and deploy | |
| run: ssh -o StrictHostKeyChecking=no -i deploy.pem ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} "cd ~/bossypaints && git pull origin main && docker-compose up -d --build" |