-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move to synse-sdk v2 * Move from jenkins to Github actions * bump: version 3.4.0
- Loading branch information
1 parent
912a08d
commit f207ae2
Showing
28 changed files
with
570 additions
and
355 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: {} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: 'go.mod' | ||
- run: "go vet ./..." | ||
- name: Lint | ||
uses: dominikh/[email protected] | ||
with: | ||
version: "2022.1.1" | ||
snapshot-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Set GOLANG_VERSION | ||
run: | | ||
echo "GOLANG_VERSION=$(go version | awk '{ print $3 }')" >> $GITHUB_ENV | ||
- name: Snapshot Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --debug --snapshot --skip-publish --rm-dist | ||
chart-releaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Verify chart-releaser config | ||
uses: vapor-ware/chart-releaser-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: check --skip-env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: release | ||
on: | ||
workflow_run: | ||
workflows: [build] | ||
types: | ||
- completed | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Set GOLANG_VERSION | ||
run: | | ||
echo "GOLANG_VERSION=$(go version | awk '{ print $3 }')" >> $GITHUB_ENV | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: docker.io | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Tagged Release | ||
uses: goreleaser/goreleaser-action@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
- | ||
name: Update Helm Chart | ||
uses: vapor-ware/chart-releaser-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: update --diff --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
module github.com/vapor-ware/synse-emulator-plugin | ||
|
||
go 1.13 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/MakeNowJust/heredoc v1.0.0 | ||
github.com/creasty/defaults v1.5.1 // indirect | ||
github.com/imdario/mergo v0.3.11 // indirect | ||
github.com/mitchellh/mapstructure v1.4.0 // indirect | ||
github.com/prometheus/client_golang v1.8.0 // indirect | ||
github.com/prometheus/common v0.15.0 // indirect | ||
github.com/sirupsen/logrus v1.7.0 | ||
github.com/vapor-ware/synse-sdk v0.1.0-alpha.0.20201202203005-962b9433e02a | ||
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb // indirect | ||
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3 // indirect | ||
golang.org/x/text v0.3.4 // indirect | ||
google.golang.org/genproto v0.0.0-20201202151023-55d61f90c1ce // indirect | ||
google.golang.org/grpc v1.33.2 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
github.com/sirupsen/logrus v1.9.0 | ||
github.com/vapor-ware/synse-sdk/v2 v2.1.2 | ||
) |
Oops, something went wrong.