Skip to content

Commit

Permalink
Adds more metrics (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch authored Jan 28, 2025
1 parent c5b07e0 commit 363d27a
Show file tree
Hide file tree
Showing 251 changed files with 2,566 additions and 59,742 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/lint.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 📋 Quality Checks

on:
pull_request:
types: [ synchronize, opened, reopened, ready_for_review ]

jobs:
lint:
name: 📋 Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Git clone the repository
uses: actions/checkout@v3

- name: 📦 Install Go
uses: actions/setup-go@v3
with:
go-version: '1.21'

- name: 🧪 Revive
run: |
go install github.com/mgechev/revive@latest
make lint
test:
name: 📋 Test
needs: lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Git clone the repository
uses: actions/checkout@v3

- name: 📦 Install Go
uses: actions/setup-go@v3
with:
go-version: '1.21'

- name: 🧪 Test
run: go test ./...
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 📋 Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+[0-9A-Za-z]?'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
buildx:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: ⬇️ Git clone the repository
uses: actions/checkout@v4

- name: 🔐 Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Build
run: |
docker build -t ${{ env.REGISTRY }}/${{ github.repository }}:apiserver-${{ github.ref_name }} -f dockerfiles/metrics-adapter/Dockerfile .
docker build -t ${{ env.REGISTRY }}/${{ github.repository }}:sidecar-${{ github.ref_name }} -f dockerfiles/sidecar/Dockerfile .
- name: ☁️ Push
run: |
docker push ${{ env.REGISTRY }}/${{ github.repository }}:apiserver-${{ github.ref_name }}
docker push ${{ env.REGISTRY }}/${{ github.repository }}:sidecar-${{ github.ref_name }}
14 changes: 0 additions & 14 deletions .github/workflows/test.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .goreleaser.yml

This file was deleted.

Loading

0 comments on commit 363d27a

Please sign in to comment.