Skip to content

Commit

Permalink
Parameterize CE_VERSION
Browse files Browse the repository at this point in the history
Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Jan 10, 2024
1 parent 5ab6bfc commit e479c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export EARTHLY_BUILDKIT_CACHE_SIZE_MB=100000
export OCI_REGISTRY=${OCI_REGISTRY:-ttl.sh}
export STYLUS_BRANCH=${STYLUS_BRANCH:-two-node}
export PROVIDER_K3S_BRANCH=${PROVIDER_K3S_BRANCH:-2-node-health-checks}
export PE_VERSION="4.1.2"

# two node vars
export TWO_NODE_BACKEND=postgres # one of: [ postgres | sqlite ]
9 changes: 5 additions & 4 deletions test/test-two-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ function build_canvos() {
--IMAGE_REGISTRY=${OCI_REGISTRY} \
--TWO_NODE=true \
--TWO_NODE_BACKEND=${TWO_NODE_BACKEND} \
--CUSTOM_TAG=${STYLUS_HASH}
docker push ${OCI_REGISTRY}/ubuntu:k3s-1.26.4-v4.1.2-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/ubuntu:k3s-1.27.2-v4.1.2-${STYLUS_HASH}
--CUSTOM_TAG=${STYLUS_HASH} \
--PE_VERSION=v${PE_VERSION}
docker push ${OCI_REGISTRY}/ubuntu:k3s-1.26.4-v${PE_VERSION}-${STYLUS_HASH}
docker push ${OCI_REGISTRY}/ubuntu:k3s-1.27.2-v${PE_VERSION}-${STYLUS_HASH}
}

function build_all() {
Expand Down Expand Up @@ -408,7 +409,7 @@ function build_all() {
(
test -f build/palette-edge-installer-stylus-${STYLUS_HASH}-k3s-${PROVIDER_K3S_HASH}.iso && \
docker image ls --format "{{.Repository}}:{{.Tag}}" | \
grep -q ${OCI_REGISTRY}/ubuntu:k3s-1.26.4-v4.1.2-${STYLUS_HASH}
grep -q ${OCI_REGISTRY}/ubuntu:k3s-1.26.4-v${PE_VERSION}-${STYLUS_HASH}
) || ( build_canvos )
}

Expand Down

0 comments on commit e479c83

Please sign in to comment.