Skip to content

Comments

chore(ci): v3 e2e test build-and-release#3229

Closed
emosbaugh wants to merge 13 commits intomainfrom
emosbaugh/sc-131352/v3-e2e-tests-pr-2-build-module-and-artifact
Closed

chore(ci): v3 e2e test build-and-release#3229
emosbaugh wants to merge 13 commits intomainfrom
emosbaugh/sc-131352/v3-e2e-tests-pr-2-build-module-and-artifact

Conversation

@emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Nov 21, 2025

What this PR does / why we need it:

Moves the build and release pipeline to dagger for portability.

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-a7b2476" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-a7b2476?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

@emosbaugh emosbaugh force-pushed the emosbaugh/sc-131352/v3-e2e-tests-pr-2-build-module-and-artifact branch from 0fb5572 to 0d4af47 Compare November 24, 2025 13:54
@emosbaugh emosbaugh marked this pull request as ready for review November 25, 2025 21:47
build-install:
name: Build current
runs-on: ubuntu-latest
runs-on: embedded-cluster-2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the large runner or the arm runner? if it's the large runner, it's expensive. any reason we need it?

build-upgrade:
name: Build upgrade
runs-on: ubuntu-latest
runs-on: embedded-cluster-2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

```bash
# Step 1: Build dependencies and export metadata
dagger call with-one-password --service-account=env:OP_SERVICE_ACCOUNT_TOKEN \
build-deps metadata export --path=./output/artifacts.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think?

Suggested change
build-deps metadata export --path=./output/artifacts.json
build-deps metadata export --path=./output/deps.json


Uploads metadata to S3.

**Note:** This currently only uploads `metadata.json` due to Docker/crane/oras complexity in Dagger containers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that make upgrade-release no longer works / uploads these binaries?


// Set build environment variables
builder = m.BuildMetadata.withEnvVariables(builder).
WithEnvVariable("IMAGES_REGISTRY_SERVER", "ttl.sh")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this (ttl.sh) might not work in the production ci pipeline as we publish the image to dockerhub currently. same for the LAM image

}

// Build and publish operator image using APKO/Melange
m.BuildMetadata.OperatorImageRepo = "ttl.sh/" + ttlShUser + "/embedded-cluster-operator-image"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use dockerhub for prod workflow (unless that's out of scope for now)

}

// Publish operator Helm chart
chartRemote := "oci://ttl.sh/" + ttlShUser
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

}

// Build and publish local-artifact-mirror image
m.BuildMetadata.LAMImageRepo = "ttl.sh/" + ttlShUser + "/embedded-cluster-local-artifact-mirror"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@emosbaugh emosbaugh marked this pull request as draft December 1, 2025 18:02
@emosbaugh emosbaugh closed this Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants