Skip to content

Commit 5025105

Browse files
fix key again
1 parent cbe2311 commit 5025105

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

make.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ docker run --user $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}/goroot:/go/ --rm g
1818
BASE=$PWD
1919
## setup our package properties by distro
2020
PKG_NAME="sigsci-module-golang"
21-
DEST_BUCKET="s3://package-build-artifacts/${PKG_NAME}/${GITHUB_RUN_NUMBER}"
21+
DEST_BUCKET="package-build-artifacts"
22+
DEST_KEY="${PKG_NAME}/${GITHUB_RUN_NUMBER}"
2223
VERSION=$(cat ./VERSION)
2324

2425

@@ -31,7 +32,7 @@ aws s3api put-object \
3132
--cache-control="max-age=300" \
3233
--content-type="application/octet-stream" \
3334
--body "./artifacts/${PKG_NAME}.tar.gz" \
34-
--key "${DEST_BUCKET}/${PKG_NAME}_${VERSION}.tar.gz" \
35+
--key "${DEST_KEY}/${PKG_NAME}_${VERSION}.tar.gz" \
3536
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
3637

3738
# Metadata files
@@ -40,15 +41,15 @@ aws s3api put-object \
4041
--cache-control="max-age=300" \
4142
--content-type="text/plain; charset=UTF-8" \
4243
--body "VERSION" \
43-
--key "${DEST_BUCKET}/VERSION" \
44+
--key "${DEST_KEY}/VERSION" \
4445
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
4546

4647
aws s3api put-object \
4748
--bucket "${DEST_BUCKET}" \
4849
--cache-control="max-age=300" \
4950
--content-type="text/plain; charset=UTF-8" \
5051
--body "CHANGELOG.md" \
51-
--key "${DEST_BUCKET}/CHANGELOG.md" \
52+
--key "${DEST_KEY}/CHANGELOG.md" \
5253
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
5354

5455

0 commit comments

Comments
 (0)