From 231064749b5723146677aa8ff677933bed2909fb Mon Sep 17 00:00:00 2001 From: linuxMate Date: Thu, 9 Nov 2023 23:46:07 +0300 Subject: [PATCH] CD debug --- .github/workflows/CD.yaml | 10 ++-------- docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 460f5a74..86b25751 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -3,8 +3,8 @@ name: CD env: REGISTRY: "codemaster482" IMAGE_NAME: "hammywallet" - CONTAINER_NAME: "HammyWallet-API" - FOLDER_COMPOSE: "backend/2023_2_Hamster" + CONTAINER_NAME: "hammywallet-api" + FOLDER_COMPOSE: "production" on: push: @@ -82,12 +82,6 @@ jobs: needs: push_to_dockerhub steps: - - name: Debugging - run: | - ls -l docker-compose.yml - ls -l cmd/api/init/db/postgresql/schema/initdb.sql - tar -zcvf /tmp/debug.tar.gz docker-compose.yml cmd/api/init/db/postgresql/schema/initdb.sql - - name: Deploy docker-compose via SSH action uses: appleboy/scp-action@v0.1.4 with: diff --git a/docker-compose.yml b/docker-compose.yml index 19987202..e8b3b056 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -70,7 +70,8 @@ services: hammywallet-api: - container_name: hammywallet-api + container_name: ${CONTAINER_NAME} + image: ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA_SHORT} env_file: - .env build: