Skip to content

Commit 5c37ad5

Browse files
committed
Enable CI
1 parent 3eb359f commit 5c37ad5

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: Build
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Setup Go
16+
uses: actions/setup-go@v1
17+
with:
18+
go-version: '1.13.8'
19+
- name: Install gox
20+
run: go get github.com/mitchellh/gox
21+
- name: Build binaries in parallel
22+
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
23+
- name: Package binaries
24+
run: cd build; for dir in *; do zip -r $dir.zip $dir; done
25+
- name: Release
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
files: build/*.zip
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This project uses the database plugin interface introduced in Vault version 0.7.
66

77
## Build
88

9+
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).
10+
11+
For other platforms, there are not currently pre-built binaries available.
12+
913
To build, `git clone` this repository and `go build -o vault-plugin-database-aerospike ./plugin` from the project directory.
1014

1115
## Installation

0 commit comments

Comments
 (0)