Skip to content
Open
Changes from 6 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7225ed6
added deploy-sbx.yaml workflow
Jan 19, 2023
47b9a5c
added tf_state_bucket in deploy-sbx.yaml workflow
Jan 19, 2023
6665087
added tf_state_bucket in deploy-sbx.yaml workflow
Jan 19, 2023
afea8cb
added tf_state_bucket in deploy-sbx.yaml workflow
Jan 19, 2023
8641bcb
added tf_state_bucket in deploy-sbx.yaml workflow
Jan 20, 2023
8e800da
updated deploy-sbx.yaml workflow
Jan 21, 2023
61286f0
tear down the stack
mickmcgrath13 Jan 24, 2023
b63039a
use new enable_postgres flag
mickmcgrath13 Jan 24, 2023
184de98
specify subnets for postgres
mickmcgrath13 Jan 25, 2023
7da17a2
use database
mickmcgrath13 Jan 31, 2023
59e3066
try async function
mickmcgrath13 Jan 31, 2023
cf3a52e
debugging app startup
mickmcgrath13 Jan 31, 2023
fde57b4
remove postgres specific vars
mickmcgrath13 Jan 31, 2023
70da7b0
enable postgres code
mickmcgrath13 Jan 31, 2023
e175bc5
adjust output
mickmcgrath13 Jan 31, 2023
8054ab7
dedicated url for postgres
mickmcgrath13 Feb 1, 2023
670f6dc
include connection to pg client
mickmcgrath13 Feb 1, 2023
2b41d12
destroy the stack
mickmcgrath13 Feb 1, 2023
c6a27b6
recreate
mickmcgrath13 Feb 1, 2023
4edaa54
configure client in JS
mickmcgrath13 Feb 1, 2023
6201050
use dot notation for app
mickmcgrath13 Feb 1, 2023
a7d3643
add debugging for pg info and specify db for pg client
mickmcgrath13 Feb 1, 2023
272cc0e
force ssl
mickmcgrath13 Feb 1, 2023
7166491
use constring connection approach
mickmcgrath13 Feb 1, 2023
212b22b
fix syntax error
mickmcgrath13 Feb 1, 2023
a1a421f
fix pgdatabase reference in constring
mickmcgrath13 Feb 1, 2023
0035946
switch back to ssl
mickmcgrath13 Feb 1, 2023
a8e865e
move client connection to postgres endpoint and specify sql response
mickmcgrath13 Feb 1, 2023
c666e68
do not specify subnets
mickmcgrath13 Feb 1, 2023
b537b5c
specify subnets
mickmcgrath13 Feb 2, 2023
0ee84d8
do not specify subnets
mickmcgrath13 Feb 2, 2023
06a0b79
Destroy stack
LeoDiazL Feb 7, 2023
a78c6f2
Recreating stack - postgres disabled
LeoDiazL Feb 7, 2023
9b4d1d6
Enable postgres
LeoDiazL Feb 7, 2023
0ad34ec
Testing db_port change
LeoDiazL Feb 7, 2023
57fb856
Moved port back to default
LeoDiazL Feb 9, 2023
fbb8d8a
Changing port
LeoDiazL Feb 9, 2023
82cda25
Destroying
LeoDiazL Feb 21, 2023
a164424
recreating
LeoDiazL Feb 21, 2023
10a6486
re-destroying
LeoDiazL Feb 21, 2023
06bf325
testing
LeoDiazL Mar 9, 2023
9818e2a
Destroy
LeoDiazL Mar 9, 2023
5e76523
Update deploy-sbx.yaml
LeoDiazL Sep 29, 2023
5682395
Update deploy-sbx.yaml
LeoDiazL Sep 29, 2023
75c6649
Update deploy-sbx.yaml
LeoDiazL Sep 29, 2023
4763bdf
Update deploy-sbx.yaml
LeoDiazL Sep 29, 2023
3211585
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
c69a98a
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
9c707ed
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
16169ff
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
eb03115
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
3ac44f2
Update deploy-sbx.yaml
LeoDiazL Nov 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/deploy-sbx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy-SBX

on:
push:
branches: [ feat/sbox-rds ]

permissions:
contents: read

jobs:
EC2-Deploy:
# if the branch name of the PR does not contain 'skip-deploy'
if: "!contains(github.head_ref, 'skip-deploy')"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name }}
url: ${{ steps.deploy.outputs.vm_url }}
steps:
- id: deploy
name: Deploy
uses: bitovi/[email protected]
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX}}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX}}
aws_default_region: us-east-1
tf_state_bucket: bitovi-operations-aws-sandbox
aws_resource_identifier: bitovi-gha-deploy-docker-to-ec2

# Provide a secret called `DOT_ENV` to append environment variables to the .env file
# dot_env: ${{ secrets.DOT_ENV }}

app_port: 3000

- if: ${{ steps.deploy.outputs.vm_url != '' }}
name: Print result created
run: |
echo "## VM Created! :rocket:" >> $GITHUB_STEP_SUMMARY
echo " ${{ steps.deploy.outputs.vm_url }}" >> $GITHUB_STEP_SUMMARY
- if: ${{ steps.deploy.outputs.vm_url == '' }}
name: Print result destroyed
run: |
echo "## VM Destroyed! :boom:" >> $GITHUB_STEP_SUMMARY
echo "Buckets and whole infrastructure should be gone now!" >> $GITHUB_STEP_SUMMARY