Skip to content

Commit

Permalink
open the CD
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Mar 15, 2024
1 parent 7f76c06 commit 22ea4f4
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,40 +73,40 @@ jobs:
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/cthub-frontend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1
oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-frontend:${{ env.VERSION }}-${{ env.PRE_RELEASE }}
# deploy:
deploy:

# name: Deploy CTHUB on Dev
# runs-on: ubuntu-latest
# timeout-minutes: 60
# needs: [set-pre-release, build]
name: Deploy CTHUB on Dev
runs-on: ubuntu-latest
timeout-minutes: 60
needs: [set-pre-release, build]

# env:
# PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }}
env:
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }}

# steps:
steps:

# - name: Checkout Manifest repository
# uses: actions/[email protected]
# with:
# repository: bcgov-c/tenant-gitops-30b186
# ref: main
# ssh-key: ${{ secrets.MANIFEST_REPO_DEPLOY_KEY }}
- name: Checkout Manifest repository
uses: actions/[email protected]
with:
repository: bcgov-c/tenant-gitops-30b186
ref: main
ssh-key: ${{ secrets.MANIFEST_REPO_DEPLOY_KEY }}

# - name: Update frontend tag
# uses: mikefarah/[email protected]
# with:
# cmd: yq -i '.frontend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

# - name: Update backend tag
# uses: mikefarah/[email protected]
# with:
# cmd: yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

# - name: GitHub Commit & Push
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "GitHub Actions"
# git add cthub/values-dev.yaml
# git commit -m "update the image tag to ${{ env.VERSION }}-${{ env.PRE_RELEASE }}"
# git push
- name: Update frontend tag
uses: mikefarah/[email protected]
with:
cmd: yq -i '.frontend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

- name: Update backend tag
uses: mikefarah/[email protected]
with:
cmd: yq -i '.backend.image.tag = "${{ env.VERSION }}-${{ env.PRE_RELEASE }}"' cthub/values-dev.yaml

- name: GitHub Commit & Push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add cthub/values-dev.yaml
git commit -m "update the image tag to ${{ env.VERSION }}-${{ env.PRE_RELEASE }}"
git push

0 comments on commit 22ea4f4

Please sign in to comment.