fix(cicd): attmpt to fix broken build secrets the sequel #6
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: ["main", "rewrite"] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - name: Setup Docker context | |
| uses: arwynfr/actions-docker-context@v2 | |
| with: | |
| docker_host: ssh://${{ vars.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} | |
| context_name: prod-remote-context | |
| ssh_cert: ${{ secrets.REMOTE_SSH_PUBLIC_KEY }} | |
| ssh_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Build Docker image(s) | |
| uses: docker/bake-action@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GRAPHQL_GITHUB_API_TOKEN }} | |
| with: | |
| push: false | |
| no-cache: true | |
| - name: Deploy stack | |
| uses: hoverkraft-tech/compose-action@v2 | |
| with: | |
| compose-file: ./compose.yaml | |
| env: | |
| CF_TURNSTILE_SECRET: ${{ secrets.CF_TURNSTILE_SECRET }} | |
| REDACTED_TERMS: ${{ secrets.REDACTED_TERMS }} |