Skip to content

Commit

Permalink
ci(migration-job): start and verify deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Apr 9, 2024
1 parent 067acf1 commit 8264df4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/action-deploy-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,23 @@ jobs:
additionalArguments: "${{inputs.dryRun && '--what-if'}}"
parameters: ./.azure/applications/web-api-migration-job/${{ inputs.environment }}.bicepparam

# - name: Start migration job
# uses: azure/CLI@v1
# if: ${{!inputs.dryRun}}
# with:
# azcliversion: 2.56.0
# inlineScript: |
# az containerapp job start -n ${{ steps.deploy.outputs.name }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
- name: Start migration job
uses: azure/CLI@v1
if: ${{!inputs.dryRun}}
with:
azcliversion: 2.56.0
inlineScript: |
az containerapp job start -n ${{ steps.deploy.outputs.name }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
# - name: Verify migration
# uses: azure/CLI@v1
# if: ${{!inputs.dryRun}}
# id: verify-migration
# timeout-minutes: 3
# with:
# azcliversion: ${{ env.AZ_CLI_VERSION }}
# inlineScript: |
# ./.github/tools/containerAppJobVerifier.sh ${{ steps.deploy.outputs.name }} ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} ${{ inputs.version }}
- name: Verify migration
uses: azure/CLI@v1
if: ${{!inputs.dryRun}}
id: verify-migration
timeout-minutes: 3
with:
azcliversion: ${{ env.AZ_CLI_VERSION }}
inlineScript: |
./.github/tools/containerAppJobVerifier.sh ${{ steps.deploy.outputs.name }} ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} ${{ inputs.version }}
- name: Logout from azure
if: ${{failure() || success()}}
Expand Down

0 comments on commit 8264df4

Please sign in to comment.