Custom script for automated deployments on Panubo managed infrastructure using Strider-CD.
This is designed to work in conjunction with Fleet Deploy and Fleet Deploy Atomic and this custom Strider Docker image.
This assumes you already have a working Strider-CD installation.
- Create a new project of type custom.
- Add "Custom Scripts" and "Metadata" plugins.
- Configure Metadata plugin:
- Key:
GIT_BRANCH
= Value:ref.branch
- Key:
GIT_NAME
= Value:project.provider.config.repo
- Setup each of the following steps in the Custom Script plugin:
~/bin/strider.sh environment
~/bin/strider.sh prepare
~/bin/strider.sh test
As an example for atomic deployment of two instances, with one new instance created up while another is destroyed.
export DEPLOY_INSTANCES=2
export DEPLOY_CHUNKING=1
~/bin/strider.sh deploy
~/bin/strider.sh cleanup $(pwd)
That's it.