Skip to content

Commit b31ef51

Browse files
fix build.yaml
1 parent e487a79 commit b31ef51

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed
File renamed without changes.

Dockerfile.git

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
FROM golang:1.10.6-alpine3.8
22
RUN apk --update add git
3-
RUN mkdir /.cache
4-
RUN chmod a+rw /.cache

make.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,36 @@ aws s3 cp \
4242
--content-type="text/markdown; charset=UTF-8" \
4343
CHANGELOG.md ${DST_BUCKET}/CHANGELOG.md
4444

45+
46+
47+
# Main package
48+
aws s3api put-object \
49+
--bucket "${DEST_BUCKET}" \
50+
--cache-control="max-age=300" \
51+
--content-type="application/octet-stream" \
52+
--body "./artifacts/${PKG_NAME}.tar.gz" \
53+
--key "${DST_BUCKET}/${PKG_NAME}_${VERSION}.tar.gz" \
54+
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
55+
56+
# Metadata files
57+
aws s3api put-object \
58+
--bucket "${DEST_BUCKET}" \
59+
--cache-control="max-age=300" \
60+
--content-type="text/plain; charset=UTF-8" \
61+
--body "VERSION" \
62+
--key "${DST_BUCKET}/VERSION" \
63+
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
64+
65+
aws s3api put-object \
66+
--bucket "${DEST_BUCKET}" \
67+
--cache-control="max-age=300" \
68+
--content-type="text/plain; charset=UTF-8" \
69+
--body "CHANGELOG.md" \
70+
--key "${DST_BUCKET}/CHANGELOG.md" \
71+
--grant-full-control id="${SIGSCI_PROD_CANONICAL_ID}"
72+
73+
74+
75+
76+
77+

0 commit comments

Comments
 (0)