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

Commit

Permalink
Update go module name and setup a github actions build pipeline
Browse files Browse the repository at this point in the history
Change in the module name is needed to reflect move to github from servian gitlab
  • Loading branch information
zeigernz committed Jan 28, 2021
1 parent cfda4ca commit 37b1176
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Go

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Build
run: go build -o bin/vault-k8s-secret-engine cmd/main.go

- name: Test
run: go test -v ./...

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.2
with:
name: vault-k8s-secret-engine
path: bin/vault-k8s-secret-engine
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/sdk/plugin"
servian "github.com/servian/vault-k8s-secret-engine/pkg"
"os"
servian "source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts/pkg"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts
module github.com/servian/vault-k8s-secret-engine

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion pkg/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/logical"
"source.servian.com/eit-integration/common/vault-k8s-dynamic-service-accounts/pkg/k8s"
"github.com/servian/vault-k8s-secret-engine/pkg/k8s"
"strings"
)

Expand Down

0 comments on commit 37b1176

Please sign in to comment.