E2E Tests - Build Azure Image #423
This file contains 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
# Runs Azure tests when pull request opened, repopened or synchronized | |
name: E2E Tests - Build Azure Image | |
on: | |
workflow_dispatch: | |
workflow_call: | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
rune2e: | |
strategy: | |
fail-fast: false | |
max-parallel: 10 | |
matrix: | |
os: | |
- "rocky 9" | |
- "ubuntu 20.04" | |
- "ubuntu 22.04" | |
buildConfig: | |
- "basic" | |
runs-on: | |
- self-hosted | |
- medium | |
continue-on-error: false | |
steps: | |
- name: Checkout konvoy-image-builder repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Login to dockerhub Registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.NEXUS_USERNAME }} | |
password: ${{ secrets.NEXUS_PASSWORD }} | |
- name: Login to D2iQ's Mirror Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}} | |
username: ${{ secrets.NEXUS_USERNAME }} | |
password: ${{ secrets.NEXUS_PASSWORD }} | |
- name: Setup buildkit | |
uses: docker/setup-buildx-action@v3 | |
- name: Run E2E test for ${{ matrix.os }} with ${{ matrix.buildConfig }} configuration | |
uses: magefile/mage-action@v3 | |
with: | |
version: latest | |
args: runE2e "${{ matrix.os }}" "${{ matrix.buildConfig }}" azure true | |
env: | |
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }} | |
AZURE_CLIENT_ID: "${{ secrets.AZURE_CLIENT_ID }}" | |
AZURE_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}" | |
AZURE_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}" | |
AZURE_CLIENT_SECRET: "${{ secrets.AZURE_CLIENT_SECRET }}" |