fix image

This commit is contained in:
Andrey Kondratev
2025-08-29 15:41:07 +05:00
parent 4dfd11e3fb
commit 890e0f9e5e
2 changed files with 6 additions and 10 deletions

View File

@@ -106,16 +106,12 @@ jobs:
port: ${{ secrets.PORT }} port: ${{ secrets.PORT }}
envs: GITHUB_TOKEN,GITHUB_ACTOR envs: GITHUB_TOKEN,GITHUB_ACTOR
script: | script: |
set -e # Exit on any error
set -x # Print commands being executed
cd /opt/quixotic cd /opt/quixotic
git pull origin main git pull origin main
# Login to GitHub Container Registry
echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
# Deploy using production compose
docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull
docker-compose -f docker-compose.yml -f docker-compose.prod.yml down --remove-orphans docker-compose -f docker-compose.yml -f docker-compose.prod.yml down --remove-orphans || true
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
docker image prune -f || true
# Cleanup old images docker-compose -f docker-compose.yml -f docker-compose.prod.yml ps
docker image prune -f

View File

@@ -1,5 +1,5 @@
services: services:
quixotic-app: quixotic-app:
image: ghcr.io/andrewkozin/quixotic:latest image: ghcr.io/cockroach-eater/quixotic:latest
environment: environment:
NODE_ENV: production NODE_ENV: production