A easy docker compose to start gocd automatically and easy migrate from original gocd.
-
cp pipelines settings from original gocd, for example: ...
-
set the name of config to be pipelines.xml and put to root directory of this repo.
-
start init_gocd.sh
-
don't forget to enable agent in gocd page manually.
-
(optional) if you want to ssh remote server through gocd agent, do these:
- create directory:
certs
- put you private key in certs directory
- then you get this key when agent run task at path:
/home/go/certs
- run
add_shh_host.sh $your-host-name
($your-host-name should be replace by your truth host name)
- create directory: