Skip to content

Commit f422533

Browse files
committed
create env file for prod
1 parent a921b9f commit f422533

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.dev.env filter=git-crypt diff=git-crypt
22
.prod.env filter=git-crypt-PROD diff=git-crypt-PROD
33
.stage.env filter=git-crypt-STAGE diff=git-crypt-STAGE
4-
.stage.aws.env filter=git-crypt-STAGE diff=git-crypt-STAGE
4+
.stage.aws.env filter=git-crypt-STAGE diff=git-crypt-STAGE
5+
.prod.aws.env filter=git-crypt-PROD diff=git-crypt-PROD

.github/workflows/aws-ui-cd-prod.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: time-tracker-ui-cd-prod
33
on:
44
push:
55
branches:
6-
- 'notfix-workflow'
6+
- 'fix-workflow'
77

88
jobs:
99
cd:
@@ -47,6 +47,16 @@ jobs:
4747
# source: './infrastructure/aws_ec2.sh'
4848
# target: '.'
4949

50+
- name: SCP files via ssh key - .prod.aws.env
51+
uses: appleboy/scp-action@master
52+
env:
53+
USERNAME: ${{ secrets.AWS_EC2_USER }}
54+
HOST: ${{ secrets.STAGE_UI_URL }}
55+
KEY: ${{ secrets.PROD_AWS_PRIVATE_KEY }}
56+
with:
57+
source: '.prod.aws.env'
58+
target: '.'
59+
5060
# - name: Deploy
5161
# run: |
5262
# TEMP=$(mktemp)

.github/workflows/aws-ui-cd-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: time-tracker-ui-cd-stage
33
on:
44
push:
55
branches:
6-
- 'fix-workflow'
6+
- 'asdffix-workflow'
77

88
jobs:
99
cd:

.prod.aws.env

566 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)