Skip to content

Commit e487a79

Browse files
uncomment upload
1 parent afa2bab commit e487a79

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

make.sh

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#!/bin/sh
22

3-
#if [ -z "${BUILD_NUMBER}" ]; then
4-
# echo "Must be run in Jenkins with BUILD_NUMBER set"
5-
# exit 2
6-
#fi
7-
8-
BUILD_NUMBER=999
9-
103
set -ex
114

125
# build / lint agent in a container
@@ -25,27 +18,27 @@ docker run --user $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}/goroot:/go/ --rm g
2518
BASE=$PWD
2619
## setup our package properties by distro
2720
PKG_NAME="sigsci-module-golang"
28-
DST_BUCKET="s3://package-build-artifacts/${PKG_NAME}/${BUILD_NUMBER}"
21+
DST_BUCKET="s3://package-build-artifacts/${PKG_NAME}/${GITHUB_RUN_NUMBER}"
2922
VERSION=$(cat ./VERSION)
3023

3124

3225
cd ${BASE}
3326
echo "DONE"
34-
#aws s3 cp \
35-
# --no-follow-symlinks \
36-
# --cache-control="max-age=300" \
37-
# ./artifacts/${PKG_NAME}.tar.gz ${DST_BUCKET}/${PKG_NAME}_${VERSION}.tar.gz
38-
#
39-
#aws s3 cp \
40-
# --no-follow-symlinks \
41-
# --cache-control="max-age=300" \
42-
# --content-type="text/plain; charset=UTF-8" \
43-
# VERSION ${DST_BUCKET}/VERSION
44-
#
45-
#aws s3 cp \
46-
# --no-follow-symlinks \
47-
# --cache-control="max-age=300" \
48-
# --content-language="en-US" \
49-
# --content-type="text/markdown; charset=UTF-8" \
50-
# CHANGELOG.md ${DST_BUCKET}/CHANGELOG.md
51-
#
27+
aws s3 cp \
28+
--no-follow-symlinks \
29+
--cache-control="max-age=300" \
30+
./artifacts/${PKG_NAME}.tar.gz ${DST_BUCKET}/${PKG_NAME}_${VERSION}.tar.gz
31+
32+
aws s3 cp \
33+
--no-follow-symlinks \
34+
--cache-control="max-age=300" \
35+
--content-type="text/plain; charset=UTF-8" \
36+
VERSION ${DST_BUCKET}/VERSION
37+
38+
aws s3 cp \
39+
--no-follow-symlinks \
40+
--cache-control="max-age=300" \
41+
--content-language="en-US" \
42+
--content-type="text/markdown; charset=UTF-8" \
43+
CHANGELOG.md ${DST_BUCKET}/CHANGELOG.md
44+

0 commit comments

Comments
 (0)