2022-12-14 10:51:42 -05:00
|
|
|
name: E2E QEMU test
|
|
|
|
description: "Test MiniConstellation functionality on Azure VM."
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
azureClientID:
|
|
|
|
description: "Azure client to use for login with OIDC"
|
|
|
|
required: true
|
|
|
|
azureSubscriptionID:
|
|
|
|
description: "Azure subscription to use for login with OIDC"
|
|
|
|
required: true
|
|
|
|
azureTenantID:
|
|
|
|
description: "Azure tenant to use for login with OIDC"
|
|
|
|
required: true
|
2023-03-20 11:05:08 -04:00
|
|
|
buildBuddyApiKey:
|
|
|
|
description: "BuildBuddy API key for caching Bazel artifacts"
|
|
|
|
required: true
|
2023-05-12 11:14:32 -04:00
|
|
|
registry:
|
|
|
|
description: "Container registry to use"
|
|
|
|
required: true
|
|
|
|
githubToken:
|
|
|
|
description: "GitHub authorization token"
|
|
|
|
required: true
|
2022-12-14 10:51:42 -05:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Install terraform
|
2024-02-21 09:29:06 -05:00
|
|
|
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
|
2022-12-14 10:51:42 -05:00
|
|
|
with:
|
|
|
|
terraform_wrapper: false
|
|
|
|
|
2023-03-20 11:05:08 -04:00
|
|
|
- name: Setup bazel
|
2023-10-04 07:55:38 -04:00
|
|
|
uses: ./.github/actions/setup_bazel_nix
|
2023-03-20 11:05:08 -04:00
|
|
|
with:
|
|
|
|
useCache: "true"
|
|
|
|
buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }}
|
|
|
|
|
2023-05-12 11:14:32 -04:00
|
|
|
- name: Log in to the Container registry
|
2023-06-06 06:20:09 -04:00
|
|
|
uses: ./.github/actions/container_registry_login
|
2023-05-12 11:14:32 -04:00
|
|
|
with:
|
|
|
|
registry: ${{ inputs.registry }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ inputs.githubToken }}
|
|
|
|
|
2022-12-14 10:51:42 -05:00
|
|
|
- name: MiniConstellation E2E
|
|
|
|
shell: bash
|
2023-01-18 04:15:58 -05:00
|
|
|
env:
|
|
|
|
ARM_CLIENT_ID: ${{ inputs.azureClientID }}
|
|
|
|
ARM_SUBSCRIPTION_ID: ${{ inputs.azureSubscriptionID }}
|
|
|
|
ARM_TENANT_ID: ${{ inputs.azureTenantID }}
|
2022-12-14 10:51:42 -05:00
|
|
|
run: |
|
2023-05-19 09:36:54 -04:00
|
|
|
bazel run //e2e/miniconstellation:push_remote_test
|