Skip to content

Commit

Permalink
test:cd
Browse files Browse the repository at this point in the history
  • Loading branch information
im-Qarch committed Apr 1, 2024
1 parent 4bb9bd7 commit b5ba589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ jobs:
password: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }}

- name: Load secrets and save to app.env
env:
APP_ENV_FILE: ${{ secrets.APP_ENV }}
run: |
echo $APP_ENV | base64 --decode > app.env
echo $APP_ENV_FILE | base64 --decode > app.env
source app.env
- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

echo "start the app"
source /app.env
echo "readable env"
source /app/app.env

echo "start the app"
exec "$@"

0 comments on commit b5ba589

Please sign in to comment.