Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 37b1176

Browse files
committed
Update go module name and setup a github actions build pipeline
Change in the module name is needed to reflect move to github from servian gitlab
1 parent cfda4ca commit 37b1176

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

.github/workflows/go.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.15
20+
21+
- name: Build
22+
run: go build -o bin/vault-k8s-secret-engine cmd/main.go
23+
24+
- name: Test
25+
run: go test -v ./...
26+
27+
- name: Upload a Build Artifact
28+
uses: actions/[email protected]
29+
with:
30+
name: vault-k8s-secret-engine
31+
path: bin/vault-k8s-secret-engine

cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"github.com/hashicorp/go-hclog"
55
"github.com/hashicorp/vault/api"
66
"github.com/hashicorp/vault/sdk/plugin"
7+
servian "github.com/servian/vault-k8s-secret-engine/pkg"
78
"os"
8-
servian "source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts/pkg"
99
)
1010

1111
func main() {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts
1+
module github.com/servian/vault-k8s-secret-engine
22

33
go 1.15
44

pkg/backend.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/hashicorp/vault/sdk/framework"
77
"github.com/hashicorp/vault/sdk/logical"
8-
"source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts/pkg/k8s"
8+
"github.com/servian/vault-k8s-secret-engine/pkg/k8s"
99
"strings"
1010
)
1111

0 commit comments

Comments
 (0)