File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Node Docker Image
2
+ on :
3
+ push :
4
+ branches :
5
+ ' developer'
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ packages : write
11
+
12
+ jobs :
13
+ Deploy :
14
+ name : Deploy
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Check out Git repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Configure AWS Credentials
22
+ uses : aws-actions/configure-aws-credentials@v2
23
+ with :
24
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
25
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26
+ aws-region : us-east-1
27
+
28
+ - name : Login to AWS Registry
29
+ run : aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $AWS_REGISTRY_URL
30
+ env :
31
+ AWS_REGISTRY_URL : ${{ secrets.AWS_NODE_REGISTRY_URL }}
32
+
33
+ - name : Build Node Image
34
+ run : docker build -t oreowallet .
35
+
36
+ - name : Deploy Node Image to AWS
37
+ run : |
38
+ docker tag oreowallet ${{ secrets.AWS_NODE_REGISTRY_URL }}/oreowallet:developer
39
+ docker push ${{ secrets.AWS_NODE_REGISTRY_URL }}/oreowallet:developer
You can’t perform that action at this time.
0 commit comments