This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine as builder | |
WORKDIR /app | |
#the following 2 steps are optional if your image does not already have the certificate | |
# package installed, golang:alpine now seems to have it. But a more base image could be missing it. | |
#RUN apk update && apk upgrade && apk add --no-cache ca-certificates | |
#RUN update-ca-certificates | |
ADD main.go /app/main.go | |
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -installsuffix cgo -o app . | |
FROM scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
TARGET="master" | |
SOURCE="develop" | |
USERNAME="jirausername" | |
PASSWORD="jirapassword" | |
FIELD="summary" | |
for ISSUE in `git log $TARGET..$SOURCE --pretty=oneline | perl -ne '{ /(\w+)-(\d+)/ && print "$1-$2\n" }' | sort | uniq`; do | |
JSON=$(curl -s -u $USERNAME:$PASSWORD -X GET https://jira.voiceworks.com/rest/api/latest/issue/$ISSUE?fields=summary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2013 Michael boke | |
# | |
# This hook creates new jobs for each new branch in the jenkins continuous integration tool. | |
# Besides creating the job if needed, the user who pushed is added to the job's email list if they were not already there. | |
while read oldrev newrev refname ; do | |
case "$refname" in | |
refs/tags/*) |