mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
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:
parent
0e7d50b465
commit
4024b9cf71
17
.github/actions/e2e_mini/action.yml
vendored
17
.github/actions/e2e_mini/action.yml
vendored
@ -14,6 +14,12 @@ inputs:
|
||||
buildBuddyApiKey:
|
||||
description: "BuildBuddy API key for caching Bazel artifacts"
|
||||
required: true
|
||||
registry:
|
||||
description: "Container registry to use"
|
||||
required: true
|
||||
githubToken:
|
||||
description: "GitHub authorization token"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@ -29,6 +35,17 @@ runs:
|
||||
useCache: "true"
|
||||
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
|
||||
shell: bash
|
||||
env:
|
||||
|
3
.github/workflows/e2e-mini.yml
vendored
3
.github/workflows/e2e-mini.yml
vendored
@ -36,6 +36,7 @@ jobs:
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
@ -57,3 +58,5 @@ jobs:
|
||||
azureSubscriptionID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
||||
azureTenantID: ${{ secrets.AZURE_TENANT_ID }}
|
||||
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
||||
registry: ghcr.io
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -218,6 +218,12 @@ func (m *miniUpCmd) prepareConfig(cmd *cobra.Command, fileHandler file.Handler,
|
||||
config.Name = constants.MiniConstellationUID
|
||||
config.RemoveProviderExcept(cloudprovider.QEMU)
|
||||
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")
|
||||
|
||||
return config, fileHandler.WriteYAML(constants.ConfigFilename, config, file.OptOverwrite)
|
||||
|
Loading…
Reference in New Issue
Block a user