File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Staging
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ build-and-deploy :
9
+ runs-on : ubuntu-latest
10
+ environment : staging # add env-level secrets if desired
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ node-version : 20
18
+ cache : ' npm'
19
+ - run : npm ci
20
+ - run : npx expo export --platform web --output-dir dist-web
21
+
22
+ - name : Build backend container
23
+ uses : docker/build-push-action@v5
24
+ with :
25
+ context : backend
26
+ push : true
27
+ tags : ghcr.io/${{ github.repository }}:staging
28
+
29
+ # Example: deploy to AWS Elastic Beanstalk
30
+ - name : Deploy to EB
31
+ uses : einaregilsson/beanstalk-deploy@v25
32
+ with :
33
+ application_name : ai-eyes-staging
34
+ environment_name : ai-eyes-staging-env
35
+ version_label : github-${{ github.sha }}
36
+ bucket_name : ${{ secrets.EB_S3_BUCKET }}
37
+ bucket_key : app-${{ github.sha }}.zip
38
+ region : us-east-1
39
+ deployment_package : backend/Dockerrun.aws.json
40
+ aws_access_key : ${{ secrets.AWS_ACCESS_KEY_ID }}
41
+ aws_secret_key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
You can’t perform that action at this time.
0 commit comments