Skip to content

Commit

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

on:
workflow_run:
workflows:
- 'Dev-Test'
types:
- 'completed'

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
on-success:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Configure AWS credentials from AWS account
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_DEV }}
aws-region: us-east-1
role-session-name: GitHub-OIDC-frontend

- name: Checkout Docker configs
run: |
git clone -b develop https://github.com/ecds/readux-configs.git
mv readux-configs/* .
chmod +x deploy.sh
./deploy.sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}

3 changes: 0 additions & 3 deletions .github/workflows/dev-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- develop
# pull_request:
# branches:
# - develop

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

0 comments on commit 9d1498d

Please sign in to comment.