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:
parent
61f2cef7a8
commit
a32e0dd474
2 changed files with 2 additions and 2 deletions
2
.github/workflows/build-and-deploy.yml
vendored
2
.github/workflows/build-and-deploy.yml
vendored
|
|
@ -78,6 +78,8 @@ jobs:
|
|||
host: ${{ secrets.SERVER_HOST }}
|
||||
username: ${{ secrets.SERVER_USERNAME }}
|
||||
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
|
||||
script: |
|
||||
cd /home/github-actions/codered-astra
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
web-app:
|
||||
image: ghcr.io/${REPO_NAME_LOWER}/web-app:${IMAGE_TAG}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue