Skip to content

Commit

Permalink
Fix secrets directory not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Sep 15, 2024
1 parent c7ba78a commit 9affe82
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,20 @@ jobs:
python-version-file: .python-version
role-to-assume: ${{ steps.parse.outputs.ActionsCodeDeployRoleARN }}

- name: Create .env
- name: Create runtime files
working-directory: codedeploy
run: |
cat <<END_OF_FILE > codedeploy/.env
mkdir -p secrets
cat <<END_OF_FILE > .env
IMAGE="${{ needs.build-image.outputs.image }}"
COMMIT="${{ github.sha }}"
COMMIT_DATE="$(git show --no-patch --format=%ad --date=format:'%Y-%m-%d' ${{ github.sha }})"
TOKEN="${{ secrets.DISCORD_TOKEN }}"
GITHUB__CLIENT_SECRET="${{ secrets.GH_APP_CLIENT_SECRET }}"
END_OF_FILE
- name: Create secrets/github__private_key
run: |
cat <<END_OF_FILE > codedeploy/secrets/github__private_key
cat <<END_OF_FILE > secrets/github__private_key
${{ secrets.GH_APP_PRIVATE_KEY }}
END_OF_FILE
Expand Down

0 comments on commit 9affe82

Please sign in to comment.