#!/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-8a1eca57bd46b6b3c7ea052e0154f4ea6166aea1/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