Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #741 from rithujohn191/release-process
Browse files Browse the repository at this point in the history
*: Revive release automation.
  • Loading branch information
rithujohn191 authored May 17, 2017
2 parents 2caff52 + c1b9742 commit 611041c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion installer/scripts/release/make_github_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# export GITHUB_CREDENTIALS=username:personal-access-token
# export TECTONIC_RELEASE_TARBALL_URL=url-of-tarball
# export VERSION=w.x.y-tectonic.z
# export PRE_RELEASE=true

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/common.env.sh"
Expand All @@ -15,6 +16,6 @@ curl \
--fail \
-u "$GITHUB_CREDENTIALS" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"$VERSION\",\"prerelease\":true,\"body\":\"Release tarball is available at $TECTONIC_RELEASE_TARBALL_URL.\"}" \
-d "{\"tag_name\":\"$VERSION\",\"prerelease\":$PRE_RELEASE,\"body\":\"Release tarball is available at $TECTONIC_RELEASE_TARBALL_URL.\"}" \
$GITHUB_API_URL

4 changes: 3 additions & 1 deletion release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pipeline {

parameters {
string(name: 'releaseTag')
boolean(name: 'pre-release')
}

stages {
Expand All @@ -24,7 +25,7 @@ pipeline {
containers: [
containerTemplate(
name: 'webapp-agent',
image: 'quay.io/coreos/tectonic-builder:v1.4',
image: 'quay.io/coreos/tectonic-builder:v1.7',
ttyEnabled: true,
command: 'cat',
)
Expand All @@ -51,6 +52,7 @@ pipeline {
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
export GITHUB_CREDENTIALS=$GITHUB_CREDENTIALS
export PRE_RELEASE=${params.pre-release}
go version
cd $GO_PROJECT/installer
make build
Expand Down

0 comments on commit 611041c

Please sign in to comment.