Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #116 from simonswine/use-goreleaser-for-builds
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Use upstream release of goreleaser 

```release-note
Use upstream goreleaser, GPG signing merged upstream
```
  • Loading branch information
jetstack-ci-bot committed Feb 20, 2018
2 parents 3bad913 + 73e74e0 commit aac1ad6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
16 changes: 3 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
variables:
GORELEASER_HASH: 634f5eedd1000a1eb675c2ca93bbbc889aa0388df76aea3501d7734616910584

# run test on golang code
#
test::tarmak::golang:
stage: test
tags:
- docker
image: golang:1.9.2
image: golang:1.9.3
script:
- curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64
- chmod +x /usr/local/bin/dep
- rm -rf /go/src/github.com/jetstack
- mkdir -p /go/src/github.com/jetstack
- mv ${CI_PROJECT_DIR} /go/src/github.com/jetstack
Expand Down Expand Up @@ -66,24 +61,19 @@ release::tarmak::golang:
stage: release
tags:
- docker
image: golang:1.9.2
image: golang:1.9.3
only:
- tags
script:
- curl -Lo /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64
- chmod +x /usr/local/bin/dep
- umask 0077
- mkdir -p /root/.gnupg
- echo "${GPG_PRIVATE_KEY}" | base64 -d > /root/.gnupg/secring.gpg
- curl -sL https://github.com/simonswine/goreleaser/releases/download/v0.36.0-gpg/goreleaser_Linux_x86_64.tar.gz > /tmp/goreleaser.tar.gz
- echo "${GORELEASER_HASH} /tmp/goreleaser.tar.gz" | sha256sum -c
- cd /usr/local/bin && tar xvfz /tmp/goreleaser.tar.gz goreleaser
- rm -rf /go/src/github.com/jetstack
- mkdir -p /go/src/github.com/jetstack
- mv ${CI_PROJECT_DIR} /go/src/github.com/jetstack
- cd /go/src/github.com/jetstack/tarmak
- make all
- goreleaser
- bin/goreleaser
- mv /go/src/github.com/jetstack/tarmak ${CI_PROJECT_DIR}

stages:
Expand Down
10 changes: 6 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
builds:
- main: ./cmd/wing/main.go
- main: ./cmd/wing
binary: wing
env:
- CGO_ENABLED=0
Expand All @@ -9,7 +9,7 @@ builds:
goarch:
- amd64
flags: -tags netgo
- main: ./cmd/tarmak/main.go
- main: ./cmd/tarmak
binary: tarmak
env:
- CGO_ENABLED=0
Expand All @@ -26,5 +26,7 @@ release:
owner: jetstack
name: tarmak

gpg_signing:
key_id: 9A1C42C8F5AA3CE6
sign:
signature: "${artifact}.asc"
args: ["-u", "tech+releases@jetstack.io", "--armor", "--output", "${artifact}.asc", "--detach-sign", "${artifact}"]
artifacts: all

0 comments on commit aac1ad6

Please sign in to comment.