File tree Expand file tree Collapse file tree 6 files changed +51
-16
lines changed
config/internal/apiserver
controllers/testdata/declarative Expand file tree Collapse file tree 6 files changed +51
-16
lines changed Original file line number Diff line number Diff line change 11# Build the manager binary
2- FROM registry.redhat.io /ubi8/go-toolset:1.18.9-8 as builder
2+ FROM registry.access. redhat.com /ubi8/go-toolset:1.18.9-8 as builder
33ARG TARGETOS
44ARG TARGETARCH
55
Original file line number Diff line number Diff line change 33 artifact_script: |-
44 #!/usr/bin/env sh
55 push_artifact() {
6- if [ -f "$2" ]; then
7- tar -cvzf $1.tgz $2
8- aws s3 --endpoint {{.ObjectStorageConnection.Endpoint}} cp $1.tgz s3://{{.ObjectStorageConnection.Bucket}}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
6+ workspace_dir=$(echo $(context.taskRun.name) | sed -e "s/$(context.pipeline.name)-//g")
7+ workspace_dest=/workspace/${workspace_dir}/artifacts/$(context.pipelineRun.name)/$(context.taskRun.name)
8+ artifact_name=$(basename $2)
9+ if [ -f "$workspace_dest/$artifact_name" ]; then
10+ echo sending to: ${workspace_dest}/${artifact_name}
11+ tar -cvzf $1.tgz -C ${workspace_dest} ${artifact_name}
12+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
13+ elif [ -f "$2" ]; then
14+ tar -cvzf $1.tgz -C $(dirname $2) ${artifact_name}
15+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
916 else
1017 echo "$2 file does not exist. Skip artifact tracking for $1"
1118 fi
Original file line number Diff line number Diff line change 33 artifact_script : |-
44 #!/usr/bin/env sh
55 push_artifact() {
6- if [ -f "$2" ]; then
7- tar -cvzf $1.tgz $2
8- aws s3 --endpoint http://minio-testdsp0.default.svc.cluster.local:9000 cp $1.tgz s3://mlpipeline/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
6+ workspace_dir=$(echo $(context.taskRun.name) | sed -e "s/$(context.pipeline.name)-//g")
7+ workspace_dest=/workspace/${workspace_dir}/artifacts/$(context.pipelineRun.name)/$(context.taskRun.name)
8+ artifact_name=$(basename $2)
9+ if [ -f "$workspace_dest/$artifact_name" ]; then
10+ echo sending to: ${workspace_dest}/${artifact_name}
11+ tar -cvzf $1.tgz -C ${workspace_dest} ${artifact_name}
12+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
13+ elif [ -f "$2" ]; then
14+ tar -cvzf $1.tgz -C $(dirname $2) ${artifact_name}
15+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
916 else
1017 echo "$2 file does not exist. Skip artifact tracking for $1"
1118 fi
Original file line number Diff line number Diff line change 33 artifact_script : |-
44 #!/usr/bin/env sh
55 push_artifact() {
6- if [ -f "$2" ]; then
7- tar -cvzf $1.tgz $2
8- aws s3 --endpoint http://minio-testdsp2.default.svc.cluster.local:9000 cp $1.tgz s3://mlpipeline/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
6+ workspace_dir=$(echo $(context.taskRun.name) | sed -e "s/$(context.pipeline.name)-//g")
7+ workspace_dest=/workspace/${workspace_dir}/artifacts/$(context.pipelineRun.name)/$(context.taskRun.name)
8+ artifact_name=$(basename $2)
9+ if [ -f "$workspace_dest/$artifact_name" ]; then
10+ echo sending to: ${workspace_dest}/${artifact_name}
11+ tar -cvzf $1.tgz -C ${workspace_dest} ${artifact_name}
12+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
13+ elif [ -f "$2" ]; then
14+ tar -cvzf $1.tgz -C $(dirname $2) ${artifact_name}
15+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
916 else
1017 echo "$2 file does not exist. Skip artifact tracking for $1"
1118 fi
Original file line number Diff line number Diff line change 33 artifact_script : |-
44 #!/usr/bin/env sh
55 push_artifact() {
6- if [ -f "$2" ]; then
7- tar -cvzf $1.tgz $2
8- aws s3 --endpoint http://minio-testdsp4.default.svc.cluster.local:9000 cp $1.tgz s3://mlpipeline/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
6+ workspace_dir=$(echo $(context.taskRun.name) | sed -e "s/$(context.pipeline.name)-//g")
7+ workspace_dest=/workspace/${workspace_dir}/artifacts/$(context.pipelineRun.name)/$(context.taskRun.name)
8+ artifact_name=$(basename $2)
9+ if [ -f "$workspace_dest/$artifact_name" ]; then
10+ echo sending to: ${workspace_dest}/${artifact_name}
11+ tar -cvzf $1.tgz -C ${workspace_dest} ${artifact_name}
12+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
13+ elif [ -f "$2" ]; then
14+ tar -cvzf $1.tgz -C $(dirname $2) ${artifact_name}
15+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
916 else
1017 echo "$2 file does not exist. Skip artifact tracking for $1"
1118 fi
Original file line number Diff line number Diff line change 33 artifact_script : |-
44 #!/usr/bin/env sh
55 push_artifact() {
6- if [ -f "$2" ]; then
7- tar -cvzf $1.tgz $2
8- aws s3 --endpoint http://minio-testdsp5.default.svc.cluster.local:9000 cp $1.tgz s3://mlpipeline/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
6+ workspace_dir=$(echo $(context.taskRun.name) | sed -e "s/$(context.pipeline.name)-//g")
7+ workspace_dest=/workspace/${workspace_dir}/artifacts/$(context.pipelineRun.name)/$(context.taskRun.name)
8+ artifact_name=$(basename $2)
9+ if [ -f "$workspace_dest/$artifact_name" ]; then
10+ echo sending to: ${workspace_dest}/${artifact_name}
11+ tar -cvzf $1.tgz -C ${workspace_dest} ${artifact_name}
12+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
13+ elif [ -f "$2" ]; then
14+ tar -cvzf $1.tgz -C $(dirname $2) ${artifact_name}
15+ aws s3 --endpoint ${ARTIFACT_ENDPOINT} cp $1.tgz s3://${ARTIFACT_BUCKET}/artifacts/$PIPELINERUN/$PIPELINETASK/$1.tgz
916 else
1017 echo "$2 file does not exist. Skip artifact tracking for $1"
1118 fi
You can’t perform that action at this time.
0 commit comments