Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
esy
e09818ca6b feat: add license
Some checks failed
Build / build (push) Failing after 39s
Build / deploy (push) Has been skipped
2024-09-23 20:07:50 +00:00
71f5928c66 ci: swapped out gitlab for forgejo actions
All checks were successful
Build / build (push) Successful in 13s
Build / deploy (push) Successful in 8s
2024-08-09 21:16:59 +01:00
3 changed files with 37 additions and 17 deletions

View file

@ -0,0 +1,28 @@
name: Build
on:
push:
branches:
- 'main'
jobs:
build:
# build it using teh base nixos system, helps with caching
runs-on: nix
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- name: "Build it locally"
run: nix build --verbose
# deploy it upstream
deploy:
# runs on teh default docker dontainer
runs-on: docker
needs: [ build ]
steps:
- name: "Deploy to Skynet"
uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet@v2
with:
input: 'skynet_ldap_frontend'
token: ${{ secrets.API_TOKEN_FORGEJO }}

View file

@ -1,17 +0,0 @@
# from https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html
# only a deploy stage
stages:
- deploy
nixos:
stage: deploy
variables:
PACKAGE_NAME: "skynet_ldap_frontend"
UPDATE_FLAKE: "yes"
trigger: compsoc1/skynet/nixos
only:
refs:
- main

9
LICENSE Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2024 Skynet
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.