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 }}
|
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
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user