Skip to content

Commit

Permalink
more debug (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
igiai authored Sep 15, 2023
1 parent c84082d commit 90915b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
TOKEN_SYMMETRIC_KEY: ${{ secrets.TOKEN_SYMMETRIC_KEY }}
run:
echo "DB_DRIVER=postgres\nDB_SOURCE=${DB_SOURCE}\nSERVER_ADDRESS=0.0.0.0:8080\nTOKEN_SYMMETRIC_KEY=${TOKEN_SYMMETRIC_KEY}\nACCESS_TOKEN_DURATION=15m" > app.env
cat app.env
- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
Expand Down
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ echo "run db migration"
# file so that it can be used in the migrate step here
source /app/app.env
cat /app/app.env
echo "value:"
echo $DB_SOURCE
# When ran with dokcer-composee DB_SOURCE is defined in the docker-compose.yaml and the below command will later use its value
/app/migrate -path /app/migration -database "$DB_SOURCE" -verbose up

Expand Down

0 comments on commit 90915b4

Please sign in to comment.