Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(cloud images): add environment default tag #566

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

yaronkaikov
Copy link
Collaborator

@yaronkaikov yaronkaikov commented Dec 24, 2024

Adding a logic for the environment tag for better image search

The default value is set for debug

  • master tag value will be daily
  • releases, the tag value will be candidate (and we modify it to production once we promote)
  • debug jobs (everything running under machine-image gating, byo or releng-testing) the value will be debug

There is one special case for private builds that will be handled in a separate PR

This is a prep for https://github.com/scylladb/scylla-pkg/issues/4077

Need to be merge only after https://github.com/scylladb/scylla-pkg/pull/4725

@yaronkaikov yaronkaikov force-pushed the set-env branch 2 times, most recently from 95291e7 to 9b7d40d Compare December 24, 2024 08:40
packer/build_image.sh Outdated Show resolved Hide resolved
@yaronkaikov yaronkaikov force-pushed the set-env branch 3 times, most recently from d44593c to 271f9f1 Compare December 24, 2024 10:44
@yaronkaikov yaronkaikov marked this pull request as ready for review December 24, 2024 10:50
@@ -238,6 +245,7 @@ if [ "$BUILD_MODE" = "debug" ]; then
fi
if $DEBUG ; then
IMAGE_NAME="debug-$IMAGE_NAME"
ENV_TAG="debug"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why to add it twice? in line 17 and here..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

leftover , removed

fruch
fruch previously approved these changes Dec 24, 2024
Copy link
Collaborator

@fruch fruch left a comment

Choose a reason for hiding this comment

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

LGTM

packer/build_image.sh Outdated Show resolved Hide resolved
Adding a logic for the `environment` tag for better image search

default value is set for `debug`

- master tag value will be `daily`
- releases, the tag value will be `candidate` (and we modify it to `production` once we promote)
- debug jobs (everything running under `machine-image` gating, `byo` or `releng-testing`) the value will be debug

There is one special case for private builds that will be handled in a separate PR

This is a prep for scylladb/scylla-pkg#4077
Copy link
Collaborator

@Annamikhlin Annamikhlin left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants