Skip to content

Commit

Permalink
CD debug
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster482 committed Nov 9, 2023
1 parent 4671856 commit 2310647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/[email protected]
with:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2310647

Please sign in to comment.