Skip to content

Commit

Permalink
chore(cd): use new cluster for cd
Browse files Browse the repository at this point in the history
  • Loading branch information
lhjt committed Feb 5, 2024
1 parent 082c56f commit e6bde8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
with:
repository: csesoc/deployment
token: ${{ secrets.GH_TOKEN }}
ref: migration
- name: Install yq
uses: mikefarah/[email protected]
- name: Update deployment
Expand All @@ -63,9 +64,9 @@ jobs:
git config user.name "CSESoc CD"
git config user.email "[email protected]"
git checkout -b update/structs/${{ github.sha }}
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/structs-client:${{ github.sha }}"' apps/projects/structs/deploy-frontend.yml
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/structs-client:${{ github.sha }}"' projects/structs/deploy-frontend.yml
git add .
git commit -m "feat(structs): update image"
git push -u origin update/structs/${{ github.sha }}
gh pr create --title "feat(structs): update image" --body "Updates the image for the structs deployment to commit csesoc/Structs.sh@${{ github.sha }}." > URL
gh pr create -B migration --title "feat(structs): update image" --body "Updates the image for the structs deployment to commit csesoc/structs.sh@${{ github.sha }}." > URL
gh pr merge $(cat URL) --squash -d

0 comments on commit e6bde8d

Please sign in to comment.