1
1
#! /bin/sh
2
2
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
-
10
3
set -ex
11
4
12
5
# 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
25
18
BASE=$PWD
26
19
# # setup our package properties by distro
27
20
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 } "
29
22
VERSION=$( cat ./VERSION)
30
23
31
24
32
25
cd ${BASE}
33
26
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