Merge pull request #3302 from Azure/e2e/global-autoscaling #249
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push E2E Tests Image to ACR | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'test/e2e/**' | |
| - 'test/util/**' | |
| - 'test/Containerfile.e2e' | |
| - 'test/go.mod' | |
| - 'test/go.sum' | |
| - 'internal/api/**' | |
| - '.github/workflows/aro-hcp-e2e-tests-image.yaml' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build_and_push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install Azure CLI | |
| uses: Azure/ARO-HCP@main | |
| - name: Az CLI login | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Build Bicep Templates | |
| run: | | |
| make -C test/e2e bicep-build | |
| - name: Build E2E Tests Image | |
| run: | | |
| make -C test/e2e image | |
| - name: Push E2E Tests Image to ACR | |
| run: | | |
| make -C test/e2e push |