File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 3232 chmod +x gradlew
3333 ./gradlew clean build -x test
3434
35- - name : Set lowercase owner
36- run : echo "OWNER_LC=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV
37-
3835 - name : Set up Docker Buildx
3936 uses : docker/setup-buildx-action@v3
4037
6259 context : .
6360 push : true
6461 tags : |
65- ghcr.io/${{env.OWNER_LC}}/${{env.OWNER_LC}} -backend:${{steps.meta.outputs.tag}}
66- ghcr.io/${{env.OWNER_LC}}/${{env.OWNER_LC}} -backend:${{github.sha}}
62+ ghcr.io/gachigage/gachigage -backend:${{steps.meta.outputs.tag}}
63+ ghcr.io/gachigage/gachigage -backend:${{github.sha}}
6764
6865 - name : Deploy on Server (pull and up)
6966 uses : appleboy/ssh-action@v1.0.3
@@ -75,13 +72,13 @@ jobs:
7572 set -e
7673 cd /opt/gachigage
7774
78- IMAGE=ghcr.io/${{env.OWNER_LC}}/${{env.OWNER_LC}} -backend
75+ IMAGE=ghcr.io/gachigage/gachigage -backend
7976 SHA_TAG=${{github.sha}}
8077 ROLLING_TAG=${{steps.meta.outputs.tag}}
8178
8279 docker pull ${IMAGE}:${SHA_TAG}
8380 docker tag ${IMAGE}:${SHA_TAG} ${IMAGE}:${ROLLING_TAG}
8481
85- unset COMPOSE_FILE
86- docker compose -f docker-compose.yml up -d --no-deps --force-recreate ${{steps.meta.outputs.service}}
82+ export COMPOSE_FILE=/opt/gachigage/docker-compose.yml
83+ docker compose --project-directory /opt/gachigage -f /opt/gachigage/ docker-compose.yml up -d --no-deps --force-recreate ${{steps.meta.outputs.service}}
8784 docker image prune -af --filter "until=168h"
You can’t perform that action at this time.
0 commit comments