Commit 574d2fab authored by Dillenn Terumalai's avatar Dillenn Terumalai
Browse files

WIP - Working on gitlab-ci

parent 105a2588
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
image: busybox:latest
image: centos:latest
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
- dnf install -y nc
- dnf install -y openssh-clients
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
build1:
stage: build
script:
- echo "Do your build here"
# after_script:
# - echo "After script section"
# - echo "For example you might do some cleanup here"
test1:
stage: test
......@@ -28,8 +23,3 @@ test2:
script:
- echo "Do another parallel test here"
- echo "For example run a lint test"
deploy1:
stage: deploy
script:
- echo "Do your deploy here"
......@@ -24,7 +24,7 @@ If you want to be able to use the tool smoothly, make sure that you have:
- OS: macOS or Linux - This script can only run on those operative systems, it might be possible to run it on Windows 10 with bash installed but it has not been tested
- SSH: public key uploaded - This script is assuming that you have generated and transferred your public SSH key to the SPSP SFTP Server. If not, please read the [Installation](#installation) chapter
- GPG: gpg available - This script uses [GnuPG](https://gnupg.org/) to encrypt the data , make sure that it is installed and you can run this command (`which gpg`) and that you already have a private key set ([more info](#sign-the-public-key)
- COMMANDS: commands available - The transfer-tool relies on multiple commands such as: `sha256sum`, `tar`, `sftp`, `nc` or `gpg`, to perform different operations needed. Make sure that all of them are available (`which sha256sum` for example)
- COMMANDS: commands available - The transfer-tool relies on multiple commands such as: `sha256sum` or `shasum`, `tar`, `sftp`, `nc` and `gpg`, to perform different operations needed. Make sure that all of them are available (`which sha256sum` for example)
- (Optional) CRON: automatic mode - If you want to activate the automatic mode of the transfer-tool make sure that you can setup a CRON task
Due to the secure environment where SPSP is hosted, data cannot be directly uploaded via the SPSP online platform. Instead SPSP users should use a dedicated drive within their institution to submit data to SPSP.
......@@ -144,7 +144,7 @@ For more information, don't hesite to type:
## Use the automatic mode
To use the automatic mode that will automatically compress, encrypt and transfer your data, you need to set up a [CRON](https://en.wikipedia.org/wiki/Cron) task.
To use the automatic mode that will automatically compress, sign, encrypt and transfer your data, you need to set up a [CRON](https://en.wikipedia.org/wiki/Cron) task.
We recommend the following settings:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment