Skip to content

Commit

Permalink
chore: update cd to point to correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sachk committed Feb 5, 2024
1 parent ecd0558 commit 749dd42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
repository: csesoc/deployment
ref: migration
token: ${{ secrets.GH_TOKEN }}
- name: Install yq
uses: mikefarah/[email protected]
Expand All @@ -65,10 +66,10 @@ jobs:
git config user.name "CSESoc CD"
git config user.email "[email protected]"
git checkout -b update/tt-scraper/${{ github.sha }}
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/timetable-api:${{ github.sha }}"' apps/projects/timetable-scraper/deploy.yml
yq -i '.spec.jobTemplate.spec.template.spec.containers[0].image = "ghcr.io/csesoc/timetable-scraper:${{ github.sha }}"' apps/projects/timetable-scraper/cronjob.yml
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/timetable-api:${{ github.sha }}"' projects/timetable-scraper/deploy.yml
yq -i '.spec.jobTemplate.spec.template.spec.containers[0].image = "ghcr.io/csesoc/timetable-scraper:${{ github.sha }}"' projects/timetable-scraper/cronjob.yml
git add .
git commit -m "feat(tt-scraper): update images"
git push -u origin update/tt-scraper/${{ github.sha }}
gh pr create --title "feat(tt-scraper): update image" --body "Updates the images for the timetable-scraper deployment to commit csesoc/timetable-scraper@${{ github.sha }}." > URL
gh pr create -B migration --title "feat(tt-scraper): update image" --body "Updates the images for the timetable-scraper deployment to commit csesoc/timetable-scraper@${{ github.sha }}." > URL
gh pr merge $(cat URL) --squash -d

0 comments on commit 749dd42

Please sign in to comment.