Skip to content

Commit

Permalink
Enable CI
Browse files Browse the repository at this point in the history
jgiannuzzi committed Feb 28, 2020
1 parent 3eb359f commit 5c37ad5
Showing 3 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: '1.13.8'
- name: Install gox
run: go get github.com/mitchellh/gox
- name: Build binaries in parallel
run: $HOME/go/bin/gox -osarch="linux/amd64 darwin/amd64 windows/386 windows/amd64" -output "build/vault-plugin-database-aerospike_${GITHUB_REF##*/}_{{.OS}}_{{.Arch}}/vault-plugin-database-aerospike" ./plugin
- name: Package binaries
run: cd build; for dir in *; do zip -r $dir.zip $dir; done
- name: Release
uses: softprops/action-gh-release@v1
with:
files: build/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,10 @@ This project uses the database plugin interface introduced in Vault version 0.7.

## Build

Pre-built binaries for Linux, macOS and Windows can be found at [the releases page](https://github.com/G-Research/vault-plugin-database-aerospike/releases).

For other platforms, there are not currently pre-built binaries available.

To build, `git clone` this repository and `go build -o vault-plugin-database-aerospike ./plugin` from the project directory.

## Installation

0 comments on commit 5c37ad5

Please sign in to comment.