File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish quickstart script
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ paths : [ "quickstart/**" ]
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ publish-quickstart :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ id-token : write
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
21+
22+ - name : Configure AWS credentials
23+ uses : aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # 6.0.0
24+ with :
25+ role-to-assume : ${{ secrets.AWS_QUICKSTART_ROLE }}
26+ aws-region : us-west-2
27+
28+ - name : Upload quickstart files to S3
29+ run : |
30+ aws s3 cp quickstart/quickstart.sh \
31+ s3://api7ai-docs-resources/aisix/quickstart \
32+ --content-type "text/x-shellscript"
33+ aws s3 cp quickstart/docker-compose.yaml \
34+ s3://api7ai-docs-resources/aisix/docker-compose.yaml \
35+ --content-type "text/yaml"
36+ aws s3 cp quickstart/config.yaml \
37+ s3://api7ai-docs-resources/aisix/config.yaml \
38+ --content-type "text/yaml"
39+
40+ - name : Invalidate CloudFront
41+ uses : chetan/invalidate-cloudfront-action@6adb1f613f4102ad81cd08a7ba83b8abe490cb8d # 2.4.2
42+ env :
43+ DISTRIBUTION : ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
44+ PATHS : /aisix/quickstart /aisix/docker-compose.yaml /aisix/config.yaml
Original file line number Diff line number Diff line change 11services :
22 aisix :
3- image : ${AISIX_IMAGE:-ghcr.io/ api7/aisix:latest}
3+ image : ${AISIX_IMAGE:-api7/aisix:latest}
44 restart : unless-stopped
55 ports :
66 - " 127.0.0.1:3000:3000"
You can’t perform that action at this time.
0 commit comments