Skip to content

Commit

Permalink
Update fvt toolchain (#463)
Browse files Browse the repository at this point in the history
- remove 'org' and 'space' from IKS login command
- use DOCKER_BUILDKIT 

---------

Signed-off-by: Christian Kadner <[email protected]>
  • Loading branch information
ckadner authored Dec 2, 2023
1 parent bba0cec commit 002870e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .tekton/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ spec:
description: iam api key
- name: resource-group
description: resource group
default: default
default: "Default"
- name: org
description: organization
- name: region
description: region
default: "us-south"
- name: space
description: space
- name: archive-dir
Expand Down Expand Up @@ -116,7 +117,6 @@ spec:
description: docker sandbox namespace
- name: publish-tag
description: image publish tag

workspaces:
- name: task-pvc
mountPath: /artifacts
Expand Down Expand Up @@ -420,6 +420,7 @@ spec:
description: organization
- name: region
description: region
default: "us-south"
- name: space
description: space
- name: archive-dir
Expand Down Expand Up @@ -481,7 +482,7 @@ spec:
# Set up kubernetes config
retry 3 3 ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" --no-region
retry 3 3 ibmcloud target -r "$REGION" -o "$ORG" -s "$SPACE" -g "$RESOURCE_GROUP"
retry 3 3 ibmcloud target -r "$REGION" -g "$RESOURCE_GROUP"
retry 3 3 ibmcloud ks cluster config -c "$SERVING_KUBERNETES_CLUSTER_NAME"
$(params.test-commands)
6 changes: 5 additions & 1 deletion scripts/deploy/iks/build-image-dind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ ORG=${ORG:-"dev-advo"}
SPACE=${SPACE:-"dev"}
RUN_TASK=${RUN_TASK:-"build"}

DOCKER_BUILDKIT=1

retry() {
local max=$1; shift
local interval=$1; shift
Expand All @@ -39,7 +41,9 @@ retry() {
}

retry 3 3 ibmcloud login --apikey "${IBM_CLOUD_API_KEY}" --no-region
retry 3 3 ibmcloud target -r "$REGION" -o "$ORG" -s "$SPACE" -g "$RESOURCE_GROUP"
#retry 3 3 ibmcloud target -r "$REGION" -o "$ORG" -s "$SPACE" -g "$RESOURCE_GROUP"
retry 3 3 ibmcloud target -r "$REGION" -g "$RESOURCE_GROUP"


######################################################################################
# Build image #
Expand Down

0 comments on commit 002870e

Please sign in to comment.