ci: fix minicon e2e test (#1763)

* ci: push containers during minicon e2e

* cli: set testing nvram for pre images in minicon
This commit is contained in:
3u13r 2023-05-12 17:14:32 +02:00 committed by GitHub
parent 0e7d50b465
commit 4024b9cf71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View File

@ -14,6 +14,12 @@ inputs:
buildBuddyApiKey: buildBuddyApiKey:
description: "BuildBuddy API key for caching Bazel artifacts" description: "BuildBuddy API key for caching Bazel artifacts"
required: true required: true
registry:
description: "Container registry to use"
required: true
githubToken:
description: "GitHub authorization token"
required: true
runs: runs:
using: "composite" using: "composite"
@ -29,6 +35,17 @@ runs:
useCache: "true" useCache: "true"
buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }} buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }}
- name: Log in to the Container registry
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2.1.0
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ inputs.githubToken }}
- name: Upload referenced container images
shell: bash
run: bazelisk run //bazel/release:push
- name: MiniConstellation E2E - name: MiniConstellation E2E
shell: bash shell: bash
env: env:

View File

@ -36,6 +36,7 @@ jobs:
permissions: permissions:
id-token: write id-token: write
contents: read contents: read
packages: write
steps: steps:
- name: Checkout - name: Checkout
id: checkout id: checkout
@ -57,3 +58,5 @@ jobs:
azureSubscriptionID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} azureSubscriptionID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azureTenantID: ${{ secrets.AZURE_TENANT_ID }} azureTenantID: ${{ secrets.AZURE_TENANT_ID }}
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }} buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
registry: ghcr.io
githubToken: ${{ secrets.GITHUB_TOKEN }}

View File

@ -218,6 +218,12 @@ func (m *miniUpCmd) prepareConfig(cmd *cobra.Command, fileHandler file.Handler,
config.Name = constants.MiniConstellationUID config.Name = constants.MiniConstellationUID
config.RemoveProviderExcept(cloudprovider.QEMU) config.RemoveProviderExcept(cloudprovider.QEMU)
config.StateDiskSizeGB = 8 config.StateDiskSizeGB = 8
// only release images (e.g. v2.7.0) use the production NVRAM
if !config.IsReleaseImage() {
config.Provider.QEMU.NVRAM = "testing"
}
m.log.Debugf("Prepared configuration") m.log.Debugf("Prepared configuration")
return config, fileHandler.WriteYAML(constants.ConfigFilename, config, file.OptOverwrite) return config, fileHandler.WriteYAML(constants.ConfigFilename, config, file.OptOverwrite)