chore: add Docker login and logout commands in deployment scripts
Build and Deploy Frontend / build-and-deploy (push) Successful in 8m38s
Build and Deploy Frontend / build-and-deploy (push) Successful in 8m38s
This commit is contained in:
@@ -43,10 +43,14 @@ jobs:
|
||||
script: |
|
||||
cd /home/matrix/ledmatrix-deployment
|
||||
|
||||
echo "$GHCR_PAT" | docker login ghcr.io -u starappeal --password-stdin
|
||||
|
||||
docker compose -f docker-compose.yml -f docker-compose.prod.yml pull frontend
|
||||
|
||||
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d frontend
|
||||
|
||||
docker image prune -f
|
||||
|
||||
docker logout ghcr.io
|
||||
env:
|
||||
GHCR_PAT: ${{ secrets.GHCR_PAT }}
|
||||
|
||||
Reference in New Issue
Block a user