Skip to content

Commit 04c3962

Browse files
committed
Added pat
1 parent aa22c77 commit 04c3962

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/prod.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,17 @@ jobs:
2828
file: Dockerfile
2929
push: true
3030
tags: 100xdevs/todo-app-week-39:${{ github.sha }}
31-
31+
32+
- name: Clone staging-ops repo, update image tags, and push tags
33+
env:
34+
PAT: ${{ secrets.PAT }}
35+
run: |
36+
git clone https://github.com/100xdevs-cohort-3/argo-deployment.git
37+
38+
sed -i 's|image: 100xdevs/todo-app-week-39:.*|image: 100xdevs/todo-app-week-39:${{ github.sha }}|' mainfest.yml
39+
40+
git config user.name "GitHub Actions Bot"
41+
git config user.email "[email protected]"
42+
git add .
43+
git commit -m "Update school server image tags to ${{ github.sha }}"
44+
git push https://${PAT}@github.com/100xdevs-cohort-3/argo-deployment.git main

0 commit comments

Comments
 (0)