Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use releaser plug in to generate binaries for both linux and mac os. #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ steps:
# Post-Publish
##############################

# This script will use the previously written version_wf file to update
# the version inside of github, as well as create release notes with a
# link back to the merged pull request.
#- label: 'postbuild_tagrepo_update_releasenotes'
# env:
# # Use automatic versioning.
# AUTOTAGREPO: true
# # Collapse the new release with the previous release.
# WF_COLLAPSERELEASE: true
# command: 'workflow postbuild_tagrepo_update_releasenotes'
- label: ':beer: tap'
branches: master
commands: |
#!/bin/bash -e
git clean -ffxdq
docker run -t --rm --privileged \
-v $$PWD:/src/github.com/sendgrid/aws-env \
-w /src/github.com/sendgrid/aws-env \
-e GITHUB_TOKEN=$$WF_GITHUB_TOKEN \
goreleaser/goreleaser:v0.142.0 release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
/aws-env
/coverage.*
version_wf
81 changes: 81 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- main: ./cmd/aws-env
binary: aws-env
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

brews:
-
name: aws-env

tap:
owner: sendgrid
name: homebrew-tap

# Allows you to set a custom download strategy.
# Default is empty.
download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy

# Allows you to add a custom require_relative at the top of the formula template
# Default is empty
custom_require: "../lib/custom_download_strategy"

# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula

# Caveats for the user of your binary.
# Default is empty.
caveats: "Must be run through aws-okta"

# Your app's homepage.
# Default is empty.
homepage: "https://github.com/sendgrid/aws-env"

# Your app's description.
# Default is empty.
description: "A small utility to help populate environment variables using secrets stored in AWS Parameter Store"

# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
175 changes: 0 additions & 175 deletions Gopkg.lock

This file was deleted.

23 changes: 0 additions & 23 deletions Gopkg.toml

This file was deleted.