Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Ye committed Sep 21, 2021
1 parent db2b918 commit 72b9bf5
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-and-test

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

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

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

- name: Shell check
uses: ludeeus/action-shellcheck@master
with:
scandir: './scripts'

- name: Vet
run: go vet ./...

- name: Build
run: go build -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install Infrabin
helm upgrade -i infrabin --set image.tag=0.9.0 -f ./infrabin.yml ./charts/infrabin
```

Upgrade Infrabin
Upgrade Infrabin (to create a new release)
```shell
helm upgrade -i infrabin --set image.tag=0.9.1 -f ./infrabin.yml ./charts/infrabin
```
Expand Down

0 comments on commit 72b9bf5

Please sign in to comment.