chore(docker): improve env var setup

* Set `GITHUB_TOKEN` based on `GH_TOKEN`
* Enable [`docker buildx bake`][0] as the default engine to build images

[0]: https://docs.docker.com/build/bake/
This commit is contained in:
João Paulo Dubas 2025-03-14 12:05:14 +00:00
parent 0d6c1f5c4b
commit b2c47a5d82
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -14,7 +14,9 @@ services:
command: infinity
environment:
ANTHROPIC_API_KEY: ${NVIM_ANTHROPIC_API_KEY:-no-api}
GH_TOKEN: ${NVIM_GH_TOKEN:-no-token}
GH_TOKEN: &github_token ${NVIM_GH_TOKEN:-no-token}
GITHUB_TOKEN: *github_token
COMPOSE_BAKE: 'true'
volumes:
- './config/atuin:/home/coder/.config/atuin'
- './config/git:/home/coder/.config/git'