Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedell committed May 11, 2023
0 parents commit cb8f601
Show file tree
Hide file tree
Showing 36 changed files with 2,646 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bundle/*
pruned-catalog*
28 changes: 28 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "Linting"

on:
push:
branches:
- "*"

env:
GO_VERSION: "1.18.x"

jobs:
lint:
name: "Lint"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: "${{ env.GO_VERSION }}"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
github-token: "${{ github.token }}"
working-directory: .
version: v1.52.2
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "Release"
on:
push:
tags:
- 'v*.*.*'

env:
GO_VERSION: "1.18.x"

jobs:
quality-gate:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Check lint
uses: fountainhead/[email protected]
id: lint
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This check name is defined as the github action job name (in .github/workflows/testing.yaml)
checkName: "Lint"
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Quality gate
if: steps.lint.outputs.conclusion != 'success'
run: |
echo "Lint Status: ${{ steps.lint.conclusion }}"
false
release:
needs: [quality-gate]
runs-on: ubuntu-20.04
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Install needed tools
shell: bash
run: make bootstrap

# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USER }}
# password: ${{ secrets.DOCKER_PASS }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & publish release artifacts
run: make ci-release
env:
# for creating the release (requires write access to packages and content)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/**/*
Loading

0 comments on commit cb8f601

Please sign in to comment.