Skip to content

Commit

Permalink
chore(workflows): Migrate github workflow to devsoc machines
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinoGoblino committed Feb 22, 2025
1 parent 4f8aafe commit a934817
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 @@ -104,17 +104,18 @@ jobs:
with:
repository: csesoc/deployment
token: ${{ secrets.GH_TOKEN }}
ref: migration
- name: Install yq - portable yaml processor
uses: mikefarah/yq@v4.34.1
uses: mikefarah/yq@v4.35.2
- name: Update deployment
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "CSESoc CD"
git config user.email "[email protected]"
git checkout -b update/chaos/staging/${{ github.sha }}
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/chaos-frontend:${{ github.sha }}"' apps/projects/chaos/staging/deploy-frontend.yml
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/chaos-backend:${{ github.sha }}"' apps/projects/chaos/staging/deploy-backend.yml
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/chaos-frontend:${{ github.sha }}"' projects/chaos/staging/deploy-frontend.yml
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/chaos-backend:${{ github.sha }}"' projects/chaos/staging/deploy-backend.yml
git add .
git commit -m "feat(chaos/staging): update images"
git push -u origin update/chaos/staging/${{ github.sha }}
Expand Down

0 comments on commit a934817

Please sign in to comment.