fix image
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -106,16 +106,12 @@ jobs:
|
||||
port: ${{ secrets.PORT }}
|
||||
envs: GITHUB_TOKEN,GITHUB_ACTOR
|
||||
script: |
|
||||
set -e # Exit on any error
|
||||
set -x # Print commands being executed
|
||||
cd /opt/quixotic
|
||||
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 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
|
||||
|
||||
# Cleanup old images
|
||||
docker image prune -f
|
||||
docker image prune -f || true
|
||||
docker-compose -f docker-compose.yml -f docker-compose.prod.yml ps
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
services:
|
||||
quixotic-app:
|
||||
image: ghcr.io/andrewkozin/quixotic:latest
|
||||
image: ghcr.io/cockroach-eater/quixotic:latest
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
|
||||
Reference in New Issue
Block a user