diff --git a/.github/workflows/run-validation.yml b/.github/workflows/run-validation.yml index 43e2a91..2cdd388 100644 --- a/.github/workflows/run-validation.yml +++ b/.github/workflows/run-validation.yml @@ -589,6 +589,43 @@ jobs: resourceGroup: ${{ vars.TEST_RESOURCE_GROUP_NAME }} disableTelemetry: ${{ vars.TEST_DISABLE_TELEMETRY }} + update-using-image-and-env-variables: + + name: 'Update app using image and environment variables' + runs-on: ubuntu-latest + timeout-minutes: 10 + + env: + TEST_IMAGE_TAG: 'fd-${{ github.run_id }}' + TEST_CONTAINER_APP_NAME: 'update-using-image-app' + + steps: + - name: Checkout action repository + uses: actions/checkout@v3 + + - name: Clone Oryx repository + uses: actions/checkout@v3 + with: + repository: microsoft/Oryx + path: oryx + + - name: Log in to Azure + uses: azure/login@v1 + with: + creds: ${{ secrets.TEST_AZURE_CREDENTIALS }} + + - name: Execute Azure Container Apps Build and Deploy Action + uses: ./ + with: + appSourcePath: ${{ github.workspace }}/oryx/tests/SampleApps/DotNetCore/NetCore6PreviewWebApp + acrName: ${{ vars.TEST_ACR_NAME }} + imageToBuild: ${{ env.TEST_FULL_ACR_NAME }}/${{ env.TEST_IMAGE_REPOSITORY }}:${{ env.TEST_IMAGE_TAG }} + targetPort: 80 + containerAppName: ${{ env.TEST_CONTAINER_APP_NAME }} + environmentVariables: 'TEST_ENV_VAR_1=TEST_ENV_VAR_1_VALUE,TEST_ENV_VAR_2=TEST_ENV_VAR_2_VALUE' + resourceGroup: ${{ vars.TEST_RESOURCE_GROUP_NAME }} + disableTelemetry: ${{ vars.TEST_DISABLE_TELEMETRY }} + update-using-image-yaml: name: 'Update app using image with YAML configuration'