Skip to content

Commit

Permalink
Add key to deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Nov 29, 2023
1 parent c430094 commit 2c484e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dev-depoly.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Dev-Deploy

# on:
# workflow_run:
# workflows: [Dev-Test]
# types: [completed]

on:
workflow_run:
workflows: [Dev-Test]
types: [completed]
push:
branches:
- develop

permissions:
id-token: write # This is required for requesting the JWT
Expand All @@ -26,6 +31,8 @@ jobs:

- name: Checkout Docker configs
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.PDEPLOY_KEY_FOR_CONFIG_REPO }}'
git clone -b develop https://github.com/ecds/readux-configs.git
mv readux-configs/* .
chmod +x deploy.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Dev-Test
on:
push:
branches:
- develop
- main

env:
DATABASE_URL: postgres://user:password@localhost:5432/readux
Expand Down

0 comments on commit 2c484e5

Please sign in to comment.