Deploy: fix GHCR auth and compose warnings

- Pass RUNNER envs to remote SSH action so docker login ghcr.io works
- Remove obsolete `version` from docker-compose.prod.yml to avoid warnings
This commit is contained in:
Christbru 2025-10-18 21:08:20 -05:00
commit a32e0dd474
2 changed files with 2 additions and 2 deletions

View file

@ -78,6 +78,8 @@ jobs:
host: ${{ secrets.SERVER_HOST }} host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }} username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }} key: ${{ secrets.SSH_PRIVATE_KEY }}
# pass selected env vars to the remote shell so docker login works
envs: RUNNER_GITHUB_TOKEN,RUNNER_GH_ACTOR
debug: true debug: true
script: | script: |
cd /home/github-actions/codered-astra cd /home/github-actions/codered-astra

View file

@ -1,5 +1,3 @@
version: '3.8'
services: services:
web-app: web-app:
image: ghcr.io/${REPO_NAME_LOWER}/web-app:${IMAGE_TAG} image: ghcr.io/${REPO_NAME_LOWER}/web-app:${IMAGE_TAG}