Skip to content

Commit

Permalink
Added staging
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Sep 16, 2024
1 parent 3c99b48 commit b3c834d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
context: .
file: ./Dockerfile.prod
push: true
tags: 100xdevs/dailycode:${{ github.sha }}
tags: 100xdevs/dailycode-staging:${{ github.sha }}

- name: Clone staging-ops repo, update, and push
env:
PAT: ${{ secrets.PAT }}
run: |
git clone https://github.com/code100x/staging-ops.git
cd staging-ops
sed -i 's|image: 100xdevs/dailycode:.*|image: 100xdevs/dailycode:${{ github.sha }}|' staging/dailycode/deployment.yml
sed -i 's|image: 100xdevs/dailycode-staging:.*|image: 100xdevs/dailycode-staging:${{ github.sha }}|' staging/dailycode/deployment.yml
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git add staging/dailycode/deployment.yml
Expand Down

0 comments on commit b3c834d

Please sign in to comment.