diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..23705f5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,55 @@ +--- +kind: pipeline +type: kubernetes +name: linter + +platform: + os: linux + arch: amd64 + +steps: +- name: markdown lint + commands: + - markdownlint *.md + image: docker.io/volkerraschek/markdownlint:0.32.1 + resources: + limits: + cpu: 150 + memory: 150M + +# - name: sync +# image: appleboy/drone-git-push +# environment: +# GIT_PUSH_SSH_KEY: +# from_secret: aur_ssh_key +# settings: +# branch: master +# remote: ssh://aur@aur.archlinux.org/mint-backgrounds.git +# force: false + +- name: email-notification + environment: + SMTP_FROM_ADDRESS: + from_secret: smtp_from_address + SMTP_FROM_NAME: + from_secret: smtp_from_name + SMTP_HOST: + from_secret: smtp_host + SMTP_USERNAME: + from_secret: smtp_username + SMTP_PASSWORD: + from_secret: smtp_password + image: docker.io/volkerraschek/drone-email:0.1.1 + resources: + limits: + cpu: 150 + memory: 150M + when: + status: + - changed + - failure + +trigger: + event: + exclude: + - tag \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..dd69de0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = false + +[Makefile] +indent_style = tab \ No newline at end of file diff --git a/.gitignore b/.gitignore index bed2c0c..c88a738 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ -pkg -src -act_runner* -LICENSE -*.tar.gz -*.tar.zst -*.tar.zst.sig \ No newline at end of file +* +!.drone.yml +!.gitignore +!.editorconfig +!.SRCINFO +!gitea-runner.service +!LICENSE +!PKGBUILD +!README.md \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4ee9327 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2022 The Gitea Authors + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..eb314a4 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# gitea-runner + +[![https://img.shields.io/aur/version/gitea-runner](https://img.shields.io/aur/version/gitea-runner)](https://aur.archlinux.org/packages/gitea-runner) +[![https://img.shields.io/aur/license/gitea-runner](https://img.shields.io/aur/license/gitea-runner)](https://aur.archlinux.org/packages/gitea-runner) +[![https://img.shields.io/aur/maintainer/gitea-runner](https://img.shields.io/aur/maintainer/gitea-runner)](https://aur.archlinux.org/packages/gitea-runner) +[![https://img.shields.io/aur/last-modified/gitea-runner](https://img.shields.io/aur/last-modified/gitea-runner)](https://aur.archlinux.org/packages/gitea-runner) +[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/gitea-runner-pkg/status.svg)](https://drone.cryptic.systems/volker.raschek/gitea-runner-pkg) + +This repository contains the source code to build the Arch Linux package +`gitea-runner`. + +The package can be created and installed locally via `makepkg`. Alternatively, +it can be installed from the +[AUR](https://aur.archlinux.org/packages/gitea-runner) using an AUR helper +such as `yay`. + +## makepkg + +Clone the repository from one of the mirrors and move into the cloned git +repository. Execute `makepkg --install` to build the and install the package. + +```bash +git clone +cd gitea-runner +makepkg --install +``` + +## yay + +Make sure that yay is installed. Run yay to build and install the +gitea-runner package. + +```bash +yay --sync --aur gitea-runner +```