This project should NOT be used as its features are now included in GitLab. This project should be considered deprecated.
Easily host artifacts from your Gitlab CI server.
Both the ci-deploy and ci-host tools are built on Node.js. Find out how to download it here.
- Go to https://artifacts.paulb.gd to download a zip.
- Extract the zip, and install the dependencies with
npm install. Then start the server withnpm start. Stop the server. - Go to the Admin Area in Gitlab, click Applications, and then click New Application. Name it whatever, however set the redirect URL path to
/auth/gitlab/callback. Take the app id and secret key, and put them in yourconfig.json. - Fill out the data URL in the
config.jsonfile. - On your Gitlab CI Runner server, install the deploy tool with
npm install -g ci-deploy. - Also on your Runner server, run
ci-deploy configure. Copy this key, and put it as the server key in theconfig.json. - Last thing on your Runner server (if it's different than your web server), go to %USER%/config.json (the full path will be outputted by the above command) and set the IP of the server.
- Create a .ci-deploy.yml file, add the
ci-deploysection like so:
ci-deploy:
files:
- '*.json'
# If you want to add a README, simply add the file:
readme: 'README.md'Inside this section, you can supply a list of files to match and upload. Most glob patterns will work here.
- Then inside your deploy script, add
ci-deploy $CI_BUILD_REPO $CI_BUILD_REF. - Start back up the CI Host, and log in as a Gitlab Administrator.
- You're done!
- Stop the CI Host, and delete the directory.
- On your Gitlab CI Runner server, run
npm uninstall -g ci-deploy - You're done!
Licensed under MIT
