Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
VDS-592: Repair autodeployment github workflow (#53)
Browse files Browse the repository at this point in the history
* Repair autodeployment github workflow

* Check evironment health code is corrected
  • Loading branch information
trueboroda authored Jan 20, 2021
1 parent b1ddb34 commit fa22ff4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ on:
appDescriptionRepo:
description: 'ArgoCd repository'
required: true
default: 'VirtoCommerce/vc-deploy-apps'
default: 'VirtoCommerce/vc-webstore-deploy'
appDescriptionBranch:
description: 'ArgoCd branch'
required: true
default: 'master'
default: 'develop'


jobs:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
$REPOSITORY = "docker.pkg.github.com/$('${{ github.repository }}'.ToLower())"
cd ${{ github.workspace }}
cd ./webstore-app/overlays/dev
cd ./webstore-app/resources
kustomize edit set image ${{ github.event.inputs.baseImageName }}=$REPOSITORY/${{ github.event.inputs.imageName }}:${{ github.event.inputs.artifactVersion }}
- name: Commit kustomize change
Expand All @@ -72,7 +72,7 @@ jobs:
run: |
do {
Start-Sleep -s 15
$statusBage = (Invoke-WebRequest -Uri "https://cd.govirto.com/api/badge?name=webstore-app-dev").Content
$statusBage = (Invoke-WebRequest -Uri "https://argo.govirto.com/api/badge?name=webstore-develop").Content
$syncedAndHealthy = $statusBage.Contains('>Healthy<') -and $statusBage.Contains('>Synced<')
if (-not $syncedAndHealthy) {
Expand Down

0 comments on commit fa22ff4

Please sign in to comment.