Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
restore goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
rimusz committed Aug 26, 2019
1 parent 8ab0d20 commit c9496d3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
env:
- GO111MODULE=on
- GOPROXY=https://gocenter.io
before:
hooks:
- go mod download
builds:
- main: cmd/kubenab/main.go
binary: kubenab
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
archive:
format: tar.gz
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
34 changes: 34 additions & 0 deletions .pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,37 @@ pipelines:
- send_notification cpe_pipeline_slack --text "kubenabRelease of docker image v${TAG_NAME} ${step_name}_buildNumber=${run_number} - SUCCESS"
onFailure:
- send_notification cpe_pipeline_slack --text "kubenabRelease of docker image v${TAG_NAME} ${step_name}_buildNumber=${run_number} - FAILED"
- name: goreleaser
type: Bash
configuration:
runtime:
type: image
image:
auto:
language: go
versions:
- "1.12.5"
environmentVariables:
TAG_NAME: $res_kubenab_release_gitTagName
GITHUB_TOKEN: ${int_jfrogsolutionsci_github_token}
inputResources:
- name: kubenab_release
trigger: false
integrations:
- name: jfrogsolutionsci_github
- name: cpe_pipeline_slack
inputSteps:
- name: build_image
execution:
onStart:
- send_notification cpe_pipeline_slack --text "Starting kubenabRelease goreleaser v${TAG_NAME} ${step_name}_buildNumber=${run_number}"
onExecute:
- cd $res_kubenab_release_resourcePath
- ls
- pwd
- curl -sL https://raw.githubusercontent.com/goreleaser/get/master/get | VERSION=v0.115.0 bash
- echo "goreleaser finished!!!"
onSuccess:
- send_notification cpe_pipeline_slack --text "kubenabRelease goreleaser v${TAG_NAME} ${step_name}_buildNumber=${run_number} - SUCCESS"
onFailure:
- send_notification cpe_pipeline_slack --text "kubenabRelease goreleaser v${TAG_NAME} ${step_name}_buildNumber=${run_number} - FAILED"

0 comments on commit c9496d3

Please sign in to comment.