Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/stale action to v9 #53

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
6074f25
Initial Project
vs4vijay Mar 23, 2020
e01cfaa
Add version command
vs4vijay Mar 23, 2020
c476945
Add version command
vs4vijay Mar 23, 2020
2b55dfc
Add LDFLAGS while building
vs4vijay Mar 24, 2020
20107a3
Add tcp_server and command
vs4vijay Mar 24, 2020
2079383
Modify TCP Server
vs4vijay Mar 24, 2020
df1bcb1
Delete vizix
vs4vijay Mar 25, 2020
cc7ccd9
Add tcp client and server package and command
vs4vijay Mar 25, 2020
7f550bf
Merge branch 'master' of github.com:vs4vijay/vizix
vs4vijay Mar 25, 2020
f14515d
Handle EOF
vs4vijay Mar 25, 2020
8001592
Add API Server and Dockerfile
vs4vijay Mar 26, 2020
6150f21
Refacotring
vs4vijay Mar 26, 2020
ea40eaf
Add iris server and dockerfile and flyctl toml
vs4vijay Mar 26, 2020
9600a6f
Add goreleaser
vs4vijay Mar 29, 2020
850c035
add brew to goreleaser
vs4vijay Mar 29, 2020
029c61d
Update makefile, gorelaser
vs4vijay Mar 29, 2020
8636b3e
Modify goreleaser, Version struct, and makefile
vs4vijay Mar 29, 2020
e99bc8b
fix typo
vs4vijay Mar 29, 2020
8be8ed8
Create release.yml
vs4vijay Mar 30, 2020
d99da05
Modify goreleaser.yml and trigger github action
vs4vijay Mar 30, 2020
87113d5
Add windows binary and modify README
vs4vijay Mar 30, 2020
85d0559
Fix windows release
vs4vijay Mar 30, 2020
91332da
Add build for rpm and deb files
vs4vijay Mar 30, 2020
86a52eb
Add build for rpm and deb files
vs4vijay Mar 30, 2020
4b52c78
Add description for snapcraft
vs4vijay Mar 30, 2020
df3c271
remove snapcraft build
vs4vijay Mar 30, 2020
daf4f95
Modify goreleaser
vs4vijay Mar 30, 2020
2692dfc
Add build-all and gorelease change
vs4vijay Mar 30, 2020
c2e99e5
Changes in goreleaser
vs4vijay Mar 30, 2020
461827b
Formatting
vs4vijay Mar 30, 2020
5350eeb
Add CI/CD for Deploy to Fly
vs4vijay Mar 30, 2020
4c933b1
Test auto merge feature
vs4vijay Mar 31, 2020
276978a
Merge pull request #2 from vs4vijay/test
vs4vijay Mar 31, 2020
d6cc4c0
Test auto merge feature
vs4vijay Mar 31, 2020
0c5b7d5
Merge pull request #3 from vs4vijay/test
kodiakhq[bot] Mar 31, 2020
049b70a
some changes
vs4vijay Mar 31, 2020
d74cdb9
goimports
vs4vijay Mar 31, 2020
245e5f1
Create stale.yml
vs4vijay Mar 31, 2020
28b92f9
Update stale.yml
vs4vijay Mar 31, 2020
3cddab1
Delete test.txt
vs4vijay Mar 31, 2020
733120c
Add renovate.json
renovate-bot Mar 31, 2020
d4c5675
Merge pull request #4 from vs4vijay/renovate/configure
kodiakhq[bot] Mar 31, 2020
9155b31
Update golang Docker tag to v1.14.1
renovate-bot Mar 31, 2020
94fa528
Update module sirupsen/logrus to v1.5.0
renovate-bot Mar 31, 2020
1696104
Add sentry code
vs4vijay Mar 31, 2020
14adb1c
Proper sentry code
vs4vijay Mar 31, 2020
0bb1ee5
Merge branch 'develop' of github.com:vs4vijay/vizix into develop
vs4vijay Mar 31, 2020
6a141b7
Merge pull request #6 from vs4vijay/renovate/github.com-sirupsen-logr…
kodiakhq[bot] Mar 31, 2020
59353fd
Merge pull request #5 from vs4vijay/renovate/docker-golang-1.x
vs4vijay Mar 31, 2020
21d9058
Update deploy.yml
vs4vijay Mar 31, 2020
88239f9
Bump github.com/spf13/cobra from 0.0.6 to 0.0.7
dependabot-preview[bot] Apr 1, 2020
63735ac
Merge pull request #8 from vs4vijay/dependabot/go_modules/github.com/…
vs4vijay Apr 4, 2020
4c0196e
Add
vs4vijay Apr 8, 2020
5c8394f
Merge branch 'develop' of github.com:vs4vijay/vizix into develop
vs4vijay Apr 8, 2020
5dd8143
Add .idea to .gitignore
vs4vijay Apr 8, 2020
49e08ff
Update .goreleaser.yml
vs4vijay Apr 22, 2020
929cc30
Update README.md
vs4vijay May 5, 2020
d342d7b
Update README.md
vs4vijay May 5, 2020
0ed4076
changes
vs4vijay Jun 29, 2020
4bb2e41
changes
vs4vijay Jun 29, 2020
14e6626
changes
vs4vijay Jun 29, 2020
cea96a3
Add GoZero
vs4vijay Sep 20, 2021
d19a8c4
Update actions/stale action to v9
renovate[bot] Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[*.{md,yml}]
indent_size = 2
indent_style = space
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to Fly

on:
push:
branches:
- "develop"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Deploy to Fly
uses: superfly/flyctl-actions@1.0
with:
args: deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
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:
- "v*.*.*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
-
name: GoReleaser Action
uses: goreleaser/goreleaser-action@v1.3.1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Stale

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GORELEASER_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@

# Dependency directories (remove the comment below to include it)
# vendor/

bin/

dist/

.idea
.DS_Store
76 changes: 76 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
before:
hooks:
- go mod download

dist: bin

builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X=github.com/vs4vijay/vizix/pkg/version.SemVer={{ .Version }}
- -X=github.com/vs4vijay/vizix/pkg/version.GitCommit={{ .Commit }}
- -X=github.com/vs4vijay/vizix/pkg/version.BuildTime={{ .Date }}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386

brews:
- name: vizix
github:
owner: vs4vijay
name: homebrew-tap
url_template: "https://github.com/vs4vijay/vizix/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: Vijay Soni (vs4vijay)
email: vs4vijay@gmail.com
folder: Formula
description: "vizix - Software for fun and profit"
skip_upload: false
install: |
bin.install "vizix"
test: |
system "#{bin}/vizix version"

nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
homepage: https://github.com/vs4vijay/vizix
description: "vizix - Software for fun and profit"
maintainer: Vijay Soni <vs4vijay@gmail.com>
license: MIT
formats:
- deb
- rpm

#snapcrafts:
# - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# summary: "vizix"
# description: "vizix - Software for fun and profit"
# grade: stable
# confinement: classic
# publish: true

archives:
- replacements:
darwin: mac
linux: linux
windows: windows
386: i386
amd64: x86_64

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
filters:
exclude:
- "^docs:"
- "^test:"
1 change: 1 addition & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = 1
5 changes: 5 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Builder stage
FROM golang:1.14.1-alpine AS builder

WORKDIR /app/src

COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN go build -o /app/bin/vizix .


# Deploy stage
FROM alpine:latest

RUN apk update
RUN apk add --no-cache bash
RUN apk add --no-cache ca-certificates

COPY --from=builder /app/bin/vizix .

EXPOSE 8888

ENTRYPOINT ["./vizix"]
CMD ["api", "--port", "8888"]
85 changes: 85 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
PROJECT := "vizix"
VERSION := 0.0.0

GIT_COMMIT := `git rev-parse HEAD`
GIT_SHA := `git rev-parse --short HEAD`
GIT_TAG := `git describe --tags --abbrev=0 --exact-match 2>/dev/null || echo "canary"`
BUILD_TIME := `date -u +"%Y-%m-%dT%H:%M:%SZ"`

LDFLAGS := ""
LDFLAGS += -X=github.com/vs4vijay/vizix/pkg/version.SemVer=$(GIT_TAG)
LDFLAGS += -X=github.com/vs4vijay/vizix/pkg/version.GitCommit=$(GIT_COMMIT)
LDFLAGS += -X=github.com/vs4vijay/vizix/pkg/version.BuildTime=$(BUILD_TIME)

OS := `uname | tr '[:upper:]' '[:lower:]'`
OS_LIST := darwin linux windows

ARCH := `uname -m`
ARCH_LIST := 386 amd64


print-%:
@echo $* = $($*)


.PHONY: tools
tools:
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/lint/golint


.PHONY: info
info:
@echo "info..."
@echo "Version: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git SHA: ${GIT_SHA}"
@echo "Build Time: ${BUILD_TIME}"
@echo ""


.PHONY: format
format:
# gofmt -l -w .
goimports -l -w .


.PHONY: lint
format:
golint .


.PHONY: test
test:
@echo "TODO"


.PHONY: build
build: info
GOOS="${OS}" GOARCH="${ARCH}" go build -v -ldflags "$(LDFLAGS)"


.PHONY: build-all
build-all:
@for os in ${OS_LIST}; do \
for arch in ${ARCH_LIST}; do \
echo "Building for OS($${os}) and Arch($${arch})"; \
GOOS=$${os} GOARCH=$${arch} go build -v -ldflags "$(LDFLAGS)" -o "bin/$(PROJECT)_$${os}_$${arch}"; \
done \
done


.PHONY: release-dry-run
release-dry-run:
goreleaser --snapshot --skip-publish --rm-dist


.PHONY: release-using-gorelease
release-using-gorelease:
goreleaser --rm-dist


.PHONY: clean
clean:
@echo "cleaning..."
rm -rf bin dist
Loading