Skip to content

Commit

Permalink
chore(docker): enable docker build to push image
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

fix(cmd): should not error out twice

Fixes #3

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

fix(run): update service if exist

Fixes #2

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

feat: license lint error fixed, detect and work with current namespace in kubeconfig, enhance delete message with force mode enabled

Fixes #1

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

feat(load): pull image if it is not exist on locally

Fixes #5

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

build: release cycle created with github actions

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

style: Update README.md

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

chore: impl cosign support

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

feat(images): change container image repository addresses

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

add docker-images

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

chore: user kindest/node instead

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

fix(doc): add new line

fix(doc): remove new line

fix(doc): add new line (#4)

Co-authored-by: Erkan Zileli <erkan.zileli@trendyol.com>

chore(goreleaser): add homebrew integration (#5)

doc(completion): fix completion docs (#10)

fix(goreleaser): remove completions from brew

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

feat: make skip_upload true

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

build(deps): bump github.com/schollz/progressbar/v3 from 3.8.2 to 3.8.3 (#12)

* feat: make skip_upload true

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

* build(deps): bump github.com/schollz/progressbar/v3 from 3.8.2 to 3.8.3

Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](schollz/progressbar@v3.8.2...v3.8.3)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

build(deps): bump github.com/AlecAivazis/survey/v2 from 2.2.16 to 2.3.2 (#11)

Bumps [github.com/AlecAivazis/survey/v2](https://github.com/AlecAivazis/survey) from 2.2.16 to 2.3.2.
- [Release notes](https://github.com/AlecAivazis/survey/releases)
- [Commits](AlecAivazis/survey@v2.2.16...v2.3.2)

---
updated-dependencies:
- dependency-name: github.com/AlecAivazis/survey/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

docs(readme): add new badges

feat: add .golangci.yaml

feat: add test workflow

docs(readme): edit badges

feat(goreleaser): add go proxy

fix: lint,fmt issues

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

fix: github release project name

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

fix: change binary name

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

fix: add go 1.17.x to the matrix, remove dockerfile (#14)

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

feat: add completions script for goreleaser (#13)

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

fix: use only go1.17 on matrix for test workflow (#15)

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

fix: golint issues are fixed

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

docs(readme): fix commands, add homebrew installation section

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

docs(readme): remove sign/verify paragraphs

docs(readme): make bold binary installation path

feat: codecov support (#26)

Fix hello-world command example (#27)

feat: improve release and installation with MacOS (#47)

build(deps): bump github.com/schollz/progressbar/v3 from 3.8.3 to 3.8.5 (#46)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
developer-guy and dependabot[bot] committed Dec 23, 2024
1 parent 8e4d400 commit 4a5d493
Show file tree
Hide file tree
Showing 54 changed files with 1,508 additions and 281 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
59 changes: 59 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#
# Copyright 2021 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "CodeQL"

on:
push:
branches: [ main ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# .github/workflows/goreleaser.yml
name: release

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.1.0'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

jobs:
Build:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Fetch Repository
uses: actions/checkout@v2
- name: Tidy
run: go mod tidy
- name: Build
run: go build -v .
- name: Test
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)

golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.41.1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ kink


dist/
completions/
coverage.txt
26 changes: 0 additions & 26 deletions .gitlab-ci.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
run:
concurrency: 4
timeout: 5m

linters:
enable:
- asciicheck
- structcheck
- varcheck
- staticcheck
- stylecheck
- prealloc
- gofmt
- goimports
- golint
- gosec
- ineffassign
- vet
- unused
- unparam
- unconvert
- misspell
- revive
Loading

0 comments on commit 4a5d493

Please sign in to comment.