Skip to content

Commit

Permalink
add script for generating release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Jul 13, 2023
1 parent 092a812 commit 8035729
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Welcome!
# CONTRIBUTING

## Welcome

We're so glad you're thinking about contributing to an 18F open source project! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We love all friendly contributions.

Expand Down Expand Up @@ -31,6 +33,6 @@ This will (re)install then run the plugin, all in one.
### Releasing

1. Update `Version` in [`main.go`](main.go).
1. Follow the [compilation instructions](https://github.com/cloudfoundry-incubator/cli-plugin-repo#cross-compile-to-the-3-different-operating-systems).
1. Run `bin/create-release-binaries.sh` to [create cross-compiled binaries](https://github.com/cloudfoundry-incubator/cli-plugin-repo#cross-compile-to-the-3-different-operating-systems).
1. Commit, tag, and push via Git.
1. Upload the binaries to [the new Release](https://github.com/18F/cf-service-connect/releases).
9 changes: 9 additions & 0 deletions bin/create-release-binaries.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

PLUGIN_NAME="cf-service-connect"

GOOS=darwin GOARCH=amd64 go build -o ${PLUGIN_NAME}_darwin_amd64
GOOS=linux GOARCH=amd64 go build -o ${PLUGIN_NAME}_linux_amd64
GOOS=linux GOARCH=386 go build -o ${PLUGIN_NAME}_linux_386
GOOS=windows GOARCH=amd64 go build -o ${PLUGIN_NAME}_windows_amd64
GOOS=windows GOARCH=386 go build -o ${PLUGIN_NAME}_windows_386

0 comments on commit 8035729

Please sign in to comment.