File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ - qa
7
8
- renovate/*
8
9
pull_request :
9
10
branches :
10
11
- master
12
+ - qa
11
13
12
14
jobs :
13
15
api-ci :
Original file line number Diff line number Diff line change 71
71
git commit -m "feat(website/prod): update image"
72
72
git push -u origin update/website-prod/${{ github.sha }}
73
73
gh pr create -B develop --title "feat(website/prod): update image" --body "Updates the image for the website-prod deployment to commit csesoc/csesoc-website@${{ github.sha }}." > URL
74
+ gh pr merge $(cat URL) --squash -d
75
+ deploy-qa :
76
+ name : Deploy QA (CD)
77
+ runs-on : ubuntu-latest
78
+ needs : [build]
79
+ concurrency : qa
80
+ environment :
81
+ name : qa
82
+ if : ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/qa' }}
83
+ steps :
84
+ - name : Checkout repository
85
+ uses : actions/checkout@v4
86
+ with :
87
+ repository : csesoc/deployment
88
+ token : ${{ secrets.GH_TOKEN }}
89
+ ref : develop
90
+ - name : Install yq - portable yaml processor
91
+
92
+ - name : Update deployment
93
+ env :
94
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
95
+ run : |
96
+ git config user.name "CSESoc CD"
97
+ git config user.email "[email protected] "
98
+ git checkout -b update/website-qa/${{ github.sha }}
99
+ yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/website-qa-backend:${{ github.sha }}"' apps/projects/website/qa/deploy-backend.yml
100
+ yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/website-qa-frontend:${{ github.sha }}"' apps/projects/website/qa/deploy-frontend.yml
101
+ git add .
102
+ git commit -m "feat(website/qa): update image"
103
+ git push -u origin update/website-qa/${{ github.sha }}
104
+ gh pr create -B develop --title "feat(website/qa): update image" --body "Updates the image for the website-qa deployment to commit csesoc/csesoc-website@${{ github.sha }}." > URL
74
105
gh pr merge $(cat URL) --squash -d
You can’t perform that action at this time.
0 commit comments