fix for docker-compose image and container_name
This commit is contained in:
@@ -90,9 +90,11 @@ jobs:
|
||||
git checkout -f FETCH_HEAD
|
||||
git reset --hard FETCH_HEAD
|
||||
git clean -fdx
|
||||
printf 'REGISTRY=%s\nIMAGE_PREFIX=%s\n' \
|
||||
printf 'REGISTRY=%s\nIMAGE_PREFIX=%s\nIMAGE_TAG=%s\nSERVICE_NAME=%s\n' \
|
||||
'${{ env.REGISTRY }}' \
|
||||
'${{ needs.build-app.outputs.IMAGE_PREFIX }}' > .env
|
||||
'${{ needs.build-app.outputs.IMAGE_PREFIX }}' \
|
||||
'${{ gitea.sha }}' \
|
||||
"$(basename '${{ needs.build-app.outputs.IMAGE_PREFIX }}')" > .env
|
||||
/data/tools/docker-compose pull
|
||||
/data/tools/docker-compose up -d --remove-orphans
|
||||
docker image prune -f
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
server:
|
||||
image: ${CI_REGISTRY_IMAGE:-claudemcp}/app:${CI_COMMIT_SHA:-latest}
|
||||
container_name: ${CI_REGISTRY_IMAGE:-claudemcp}
|
||||
image: ${REGISTRY}/${IMAGE_PREFIX}/app:latest
|
||||
container_name: ${SERVICE_NAME}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${APP_PORT:-3000}:3000"
|
||||
|
||||
Reference in New Issue
Block a user