-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #638 from tailwarden/develop
v3.0.7 release 🚀
- Loading branch information
Showing
77 changed files
with
1,862 additions
and
884 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
name: "Build and Test Komiser PRs" | ||
on: pull_request | ||
|
||
jobs: | ||
build_test_dashboard: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
cache-dependency-path: "dashboard/package-lock.json" | ||
|
||
- run: npm ci | ||
working-directory: dashboard | ||
|
||
- run: npm run lint | ||
working-directory: dashboard | ||
|
||
- run: npm test | ||
working-directory: dashboard | ||
|
||
- run: npm run build | ||
working-directory: dashboard | ||
|
||
build_test_cli: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.2 | ||
|
||
# FIXME: https://github.com/golangci/golangci-lint-action/issues/677 | ||
# - name: golangci-lint | ||
# uses: golangci/golangci-lint-action@v3 | ||
# with: | ||
# skip-pkg-cache: true | ||
|
||
- name: Install dependencies | ||
run: go mod download | ||
|
||
- name: Test | ||
run: make test | ||
|
||
- name: Build | ||
run: make build |
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,77 @@ | ||
name: "Release Komiser" | ||
on: | ||
push: | ||
# run only against tags | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build_frontend: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
cache-dependency-path: "dashboard/package-lock.json" | ||
|
||
- run: npm ci | ||
working-directory: dashboard | ||
|
||
- run: npm run build | ||
working-directory: dashboard | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dashboard-build | ||
path: dashboard/out | ||
|
||
build_komiser: | ||
runs-on: ubuntu-latest | ||
needs: build_frontend | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: git fetch --force --tags | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ">=1.20.2" | ||
cache: true | ||
|
||
- name: Install go-bin-data | ||
run: | | ||
go install -a -v github.com/go-bindata/go-bindata/...@latest | ||
go install -v github.com/elazarl/go-bindata-assetfs/... | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: dashboard-build | ||
path: out | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_LOGIN }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }} |
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 |
---|---|---|
|
@@ -12,4 +12,5 @@ bin | |
*.db | ||
|
||
.vscode/ | ||
.env | ||
.env | ||
dist/ |
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,4 @@ | ||
run: | ||
timeout: 5m | ||
skip-dirs: | ||
- dashboard |
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,75 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
- go-bindata-assetfs -o internal/api/v1/template.go out/... | ||
- sed -i -e 's/package main/package v1/g' internal/api/v1/template.go | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
blobs: | ||
- provider: s3 | ||
bucket: komiser-releases | ||
folder: "/{{.Version}}" | ||
|
||
brews: | ||
- tap: | ||
owner: tailwarden | ||
name: homebrew-komiser | ||
branch: master | ||
folder: Formula | ||
homepage: "https://komiser.io" | ||
description: "Komiser.io command line interface" | ||
url_template: "https://cli.komiser.io/{{ .Tag }}/{{ .ArtifactName }}" | ||
|
||
dockers: | ||
- image_templates: | ||
- tailwarden/komiser:{{ .Tag }} | ||
- tailwarden/komiser:latest | ||
- tailwarden/komiser:{{ .FullCommit }} | ||
use: buildx | ||
build_flag_templates: | ||
- "--platform linux/amd64,linux/arm64" | ||
- "--build-arg SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY" | ||
|
||
release: | ||
github: | ||
owner: tailwarden | ||
name: komiser | ||
draft: true | ||
|
||
archives: | ||
- format: tar.gz | ||
# this name template makes the OS and Arch compatible with the results of uname. | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
# The lines beneath this are called `modelines`. See `:help modeline` | ||
# Feel free to remove those if you don't want/use them. | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
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
Oops, something went wrong.