Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
create env file for prod
  • Loading branch information
mmaquina committed Apr 4, 2023
commit f4225335d291dd1c642ec7f4912c9dad2ed7fd31
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.dev.env filter=git-crypt diff=git-crypt
.prod.env filter=git-crypt-PROD diff=git-crypt-PROD
.stage.env filter=git-crypt-STAGE diff=git-crypt-STAGE
.stage.aws.env filter=git-crypt-STAGE diff=git-crypt-STAGE
.stage.aws.env filter=git-crypt-STAGE diff=git-crypt-STAGE
.prod.aws.env filter=git-crypt-PROD diff=git-crypt-PROD
12 changes: 11 additions & 1 deletion .github/workflows/aws-ui-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: time-tracker-ui-cd-prod
on:
push:
branches:
- 'notfix-workflow'
- 'fix-workflow'

jobs:
cd:
Expand Down Expand Up @@ -47,6 +47,16 @@ jobs:
# source: './infrastructure/aws_ec2.sh'
# target: '.'

- name: SCP files via ssh key - .prod.aws.env
uses: appleboy/scp-action@master
env:
USERNAME: ${{ secrets.AWS_EC2_USER }}
HOST: ${{ secrets.STAGE_UI_URL }}
KEY: ${{ secrets.PROD_AWS_PRIVATE_KEY }}
with:
source: '.prod.aws.env'
target: '.'

# - name: Deploy
# run: |
# TEMP=$(mktemp)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aws-ui-cd-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: time-tracker-ui-cd-stage
on:
push:
branches:
- 'fix-workflow'
- 'asdffix-workflow'

jobs:
cd:
Expand Down
Binary file added .prod.aws.env
Binary file not shown.