Skip to content

Commit 61ceddf

Browse files
committed
Initial commit
0 parents  commit 61ceddf

File tree

12 files changed

+1527
-0
lines changed

12 files changed

+1527
-0
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: main
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/setup-go@v1
12+
with:
13+
go-version: '1.15'
14+
15+
- uses: actions/checkout@v2
16+
17+
- name: Build
18+
run: go build ./...
19+
20+
release:
21+
runs-on: ubuntu-latest
22+
needs: test
23+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
24+
steps:
25+
- uses: actions/setup-go@v1
26+
with:
27+
go-version: '1.15'
28+
29+
- uses: actions/checkout@v2
30+
31+
- name: Install Tools
32+
env:
33+
GO111MODULE: on
34+
run: |
35+
cd /tmp
36+
go get github.com/google/ko/cmd/[email protected]
37+
echo "$( go env GOPATH )/bin" >> $GITHUB_PATH
38+
39+
- name: Docker Hub Release
40+
env:
41+
KO_DOCKER_REPO: dsbrng25b
42+
run: |
43+
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u dsbrng25b --password-stdin
44+
ko publish -t "${GITHUB_REF##*/}" -t latest -B .
45+
46+
- name: Github Release
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
sudo snap install goreleaser --classic
51+
goreleaser release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
k8s-s2s-auth
2+
sa.pub

.goreleaser.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project_name: k8s-s2s-auth
2+
builds:
3+
- goos:
4+
- linux
5+
- darwin
6+
- windows
7+
archives:
8+
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
9+
format: binary
10+
checksum:
11+
name_template: 'checksums.txt'
12+
changelog:
13+
sort: asc

0 commit comments

Comments
 (0)