-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improves batch build generation (#4138)
- Loading branch information
Showing
41 changed files
with
323 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,15 @@ REPO_OWNER=aws | |
|
||
BASE_IMAGE_NAME?=eks-distro-base | ||
|
||
# we need to set IMAGE_BUILD_ARGS here even though its the same as the default. | ||
# it is set in Common.mk on the images target (https://github.com/aws/eks-anywhere-build-tooling/blob/8b6d6d66974e881b22e3c9c8ea29adc26f7df5fd/Common.mk#L799) | ||
# and the combine-images target (https://github.com/aws/eks-anywhere-build-tooling/blob/8b6d6d66974e881b22e3c9c8ea29adc26f7df5fd/Common.mk#L846) | ||
# since combine-images has images as prereq target, the ?= does not really behavior as one might expect. | ||
# the images target being the actual action, its version of the set takes prioirty and resets to empty | ||
# setting it explicitly to empty here takes allows the combine-images override to take proirty | ||
IMAGE_BUILD_ARGS= | ||
DOCKERFILE_FOLDER=$(if $(filter bottlerocket-bootstrap-snow,$(IMAGE_NAME)),./docker/linux/snow,./docker/linux) | ||
|
||
IMAGE_NAMES=bottlerocket-bootstrap bottlerocket-bootstrap-snow | ||
|
||
BOTTLEROCKET_BOOTSTRAP_IMAGE_COMPONENT=bottlerocket-bootstrap | ||
|
@@ -19,8 +28,9 @@ GIT_TAG=v$(RELEASE_BRANCH)-$(shell yq e ".releases[] | select(.branch==\"${RELEA | |
|
||
HAS_RELEASE_BRANCHES=true | ||
|
||
BUILDSPEC_VARS_KEYS=RELEASE_BRANCH | ||
BUILDSPEC_VARS_VALUES=SUPPORTED_K8S_VERSIONS | ||
BUILDSPECS=$(BUILDSPECS_FOR_COMBINE_IMAGES) | ||
BUILDSPEC_1_COMPUTE_TYPE=BUILD_GENERAL1_LARGE | ||
|
||
EXCLUDE_FROM_UPGRADE_BUILDSPEC=true | ||
|
||
# Go 1.18 and newer automatically embeds vcs information if the go module being built | ||
|
@@ -81,8 +91,6 @@ $(TOOLS_BIN_DIR): | |
$(MOCKGEN): $(TOOLS_BIN_DIR) | ||
GOBIN=$(TOOLS_BIN_DIR) $(GO) install github.com/golang/mock/[email protected] | ||
|
||
bottlerocket-bootstrap-snow/images/%: DOCKERFILE_FOLDER=./docker/linux/snow | ||
|
||
GIT_TAG: | ||
echo 0.0.0 > $@ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.