schutzbot: fix uploading artifacts
Fixes mistake in copying over from osbuild-composer. And upload the artifacts recursively.
This commit is contained in:
parent
dd80a1757c
commit
2c827e2816
1 changed files with 3 additions and 3 deletions
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# This script uploads all files from ARTIFACTS folder to S3
|
||||
|
||||
S3_URL="s3://image-builder-ci-artifacts/osbuild-composer/$CI_COMMIT_BRANCH/$CI_JOB_ID/"
|
||||
BROWSER_URL="https://s3.console.aws.amazon.com/s3/buckets/image-builder-ci-artifacts?region=us-east-1&prefix=osbuild-composer/$CI_COMMIT_BRANCH/$CI_JOB_ID/&showversions=false"
|
||||
S3_URL="s3://image-builder-ci-artifacts/image-builder-frontend/$CI_COMMIT_BRANCH/$CI_JOB_ID/"
|
||||
BROWSER_URL="https://s3.console.aws.amazon.com/s3/buckets/image-builder-ci-artifacts?region=us-east-1&prefix=image-builder-frontend/$CI_COMMIT_BRANCH/$CI_JOB_ID/&showversions=false"
|
||||
ARTIFACTS=${ARTIFACTS:-/tmp/artifacts}
|
||||
|
||||
# Colorful output.
|
||||
|
|
@ -29,6 +29,6 @@ greenprint "Job artifacts will be uploaded to: $S3_URL"
|
|||
|
||||
AWS_SECRET_ACCESS_KEY="$V2_AWS_SECRET_ACCESS_KEY" \
|
||||
AWS_ACCESS_KEY_ID="$V2_AWS_ACCESS_KEY_ID" \
|
||||
s3cmd --acl-private put "$ARTIFACTS"/* "$S3_URL"
|
||||
s3cmd --acl-private --recursive put "$ARTIFACTS"/* "$S3_URL"
|
||||
|
||||
greenprint "Please login to 438669297788 AWS account and visit $BROWSER_URL to access job artifacts."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue