diff options
-rw-r--r-- | README | 13 | ||||
-rwxr-xr-x | dscip | 18 |
2 files changed, 25 insertions, 6 deletions
diff --git a/README b/README index 47b6038..327a8e5 100644 --- a/README +++ b/README @@ -1,9 +1,9 @@ -dscip: Dead Simple Continuous Integration Posix +dscip: Dead Simple Continuous Integration POSIX ================================================================================ Description: This is a script/daemon that scans a git repo for changes, and runs commands -automatically. It's mean't to be a dead simple alternative to services like -gitlab-ci and jenkins. This script was also made to be as POSIX compliant as +automatically. It's meant to be a dead simple alternative to services like +Gitlab-ci and Jenkins. This script was also made to be as POSIX compliant as possible, so it should run on basically every platform with a POSIX shell. ================================================================================ How To Use: @@ -12,11 +12,12 @@ How To Use: 3. Open dscip in your text editor of choice and modify the variables to your liking. 4. Edit pre.sh, build.sh, and post.sh to fit your needs. - 5. Create a user for building. Like `dscip_user` - 6. Run chown -R dscip /var/dscip + 5. Create a user for building. Like `dscip_user` or `project_name` + (Depends how separated you want to privileges to be.) + 6. Run chown -R <user> /var/dscip So the new user owns it all. Cron: - Add: * * * * * dscip_user /var/dscip/project_name/dscip + Add: * * * * * <user> /var/dscip/project_name/dscip to your crontab. Daemon: Set DSCIP_DAEMON to true, and create an init script for it, and enable diff --git a/dscip b/dscip index 8b4eb94..4389614 100755 --- a/dscip +++ b/dscip @@ -1,5 +1,23 @@ #!/bin/sh + +################################################################################ +# Copyright 2022 Charadon # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + set -e + # Variables that control the program. # # GIT Repo # DSCIP_GITREPO="https://www.example.com/example/example.git" |