Skip to content

Commit

Permalink
feat: initialise repository
Browse files Browse the repository at this point in the history
  • Loading branch information
levivannoort committed Nov 27, 2024
0 parents commit e8d8b32
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: continuous-integration

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4

- name: install go
uses: actions/setup-go@v4
with:
go-version: 1.21.3

- name: run linters
uses: golangci/golangci-lint-action@v3
with:
version: v1.53

- name: checkout code
uses: actions/checkout@v4

- name: contributors
uses: ./ # kontrolplane/contributors@latest
Empty file added .gitignore
Empty file.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.23.2 AS build
WORKDIR /action
COPY . .
RUN CGO_ENABLED=0 go build -o contributors

FROM alpine:latest
COPY --from=build /action/contributors /contributors
ENTRYPOINT ["/contributors"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 kontrolplane

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Empty file added README.md
Empty file.
13 changes: 13 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "contributors"
description: "GitHub Action for generating a list of contibutors of a repository to be used in markdown."
author: "Levi van Noort"

branding:
icon: 'users'
color: 'green'

runs:
using: "docker"
image: "Dockerfile"

inputs: {}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/kontrolplane/contributors

go 1.23.2
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func main() {

}

0 comments on commit e8d8b32

Please sign in to comment.