Skip to content

wip: try fix Docker context auth error #12

wip: try fix Docker context auth error

wip: try fix Docker context auth error #12

Workflow file for this run

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_key: ${{ secrets.SSH_PRIVATE_KEY }}
use_context: true
- name: Build Docker image(s)
uses: docker/bake-action@v6
env:
GRAPHQL_GITHUB_API_TOKEN: ${{ secrets.GRAPHQL_GITHUB_API_TOKEN }}
with:
files: |
docker-bake.hcl
docker-bake.prod.hcl
push: false
no-cache: true
- name: Checkout repository
uses: actions/checkout@v3
- name: Get Docker context information
run: |
docker context ls
- name: Deploy stack
uses: hoverkraft-tech/compose-action@v2
with:
compose-file: |
./compose.yaml
./compose.prod.yaml
env:
CF_TURNSTILE_SECRET: ${{ secrets.CF_TURNSTILE_SECRET }}
REDACTED_TERMS: ${{ secrets.REDACTED_TERMS }}