#!/bin/sh # Installs 3 files: # - configuration to /etc/core/config.json # - core executable into /usr/local/bin/ # - rc-service script into /etc/init.d/core # # Enables and starts the service with user prompt to # update the configuration. mkdir /etc/core/ # Grab the binary curl https://core.build.jmh.lol/artifacts/build-main-65d9e28779ad88bde8adde51f1989ab1c50e083a/core-linux-amd64 >/usr/local/bin/core chmod +x /usr/local/bin/core # Grab the rc-service script curl https://core.build.jmh.lol/service-script >/etc/init.d/core chmod +x /etc/init.d/core # Enable and start the service rc-update add core rc-service core start echo Edit configuration: /etc/core/config.json echo Then restart the service: service core restart echo "" echo This server will need to be provisioned with any dependencies echo required for your software. echo "" # This is specific to just the build server project: # echo Set the Git URL of the desired project, then add a Makefile # echo with the target \"build-server-artifacts\" to the project. # echo "" # echo Trigger builds via GET request: # echo curl https://yourserver.com/build?branch=main\&token=yourtoken