This repository was archived by the owner on Feb 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
installer/scripts/release Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+ #
3
+ # A utility script for executing arbitrary local scripts via docker.
4
+ # This can be used for executing build/release scripts locally in our build container in the absence of Jenkins.
5
+ #
6
+ # USAGE:
7
+ #
8
+ # With env vars:
9
+ # MYVAR=foo OTHERVAR=bar DOCKER_ENV=MYVAR,OTHERVAR ./builder-run ./my-script --my-script-arg1 --my-script-arg2
10
+ #
11
+ # Without env vars:
12
+ # ./builder-run ./my-script --my-script-arg1 --my-script-arg2
13
+
14
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
15
+
16
+ # forward whitelisted env variables to docker
17
+ ENV_STR=" "
18
+ for VAR in ${DOCKER_ENV// ,/ } ; do
19
+ ENV_STR=" $ENV_STR -e $VAR =${! VAR} "
20
+ done
21
+
22
+ PROJECT=$SCRIPT_DIR
23
+ set -x
24
+ docker run --user=" ${BUILDER_RUN_USER} " $ENV_STR --rm -v $PROJECT :/go/src/github.com/coreos/tectonic-installer -w /go/src/coreos/tectonic-installer $DOCKER_RUN_ARGS $BUILDER_IMAGE $@
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
+ # USAGE:
4
+ # export GITHUB_CREDENTIALS=username:personal-access-token
5
+ # export TECTONIC_RELEASE_TARBALL_URL=url-of-tarball
6
+ # export VERSION=w.x.y-tectonic.z
7
+
3
8
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4
9
source " $DIR /common.env.sh"
5
10
6
- GITHUB_API_URL=" https://api.github.com/repos/coreos-inc /tectonic/releases"
11
+ GITHUB_API_URL=" https://api.github.com/repos/coreos/tectonic-installer /releases"
7
12
8
13
echo " Creating new release on GitHub"
9
14
curl \
10
15
--fail \
11
16
-u " $GITHUB_CREDENTIALS " \
12
17
-H " Content-Type: application/json" \
13
- -d " {\" tag_name\" :\" $VERSION \" ,\" body\" :\" Release tarball is available at $TECTONIC_RELEASE_TARBALL_URL .\" }" \
18
+ -d " {\" tag_name\" :\" $VERSION \" ,\" prerelease \" :true, \" body\" :\" Release tarball is available at $TECTONIC_RELEASE_TARBALL_URL .\" }" \
14
19
$GITHUB_API_URL
15
20
You can’t perform that action at this time.
0 commit comments