mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05: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:
|
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:
|
||||||
|
3
.github/workflows/e2e-mini.yml
vendored
3
.github/workflows/e2e-mini.yml
vendored
@ -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 }}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user