This is a rancher-compose resource which teaches concourse how to trigger deployments in rancher.
resource_types:
- name: rancher-compose
type: docker-image
source:
repository: arwineap/rancher-compose-resource
url: Required. The URL of the rancher endpointaccess_key: Required. A Rancher access_key for the project's environmentsecret_key: Required. A Rancher secret_key for the project's environmentExample
resources:
- name: rancher
type: rancher-compose
source:
url: http://rancher.foo.com
access_key: ((rancher_access_key))
secret_key: ((rancher_secret_key))
noop
noop
Deploys a rancher project.
parameters
path Required. path to docker-compose and rancher-compose filesproject Required. The name of the rancher-compose projectservice Optional. Name of the service to affect. If not specified all services are affected.pull Optional. If set, the project image is always pulled before a deploymentupgrade Optional. One of (true|false|confirm|rollback). Starts, forces, confirms, or rolls back an upgradejobs:
- name: blog
plan:
- get: blogRepo
trigger: true
- put: blogImage
params:
build: blogRepo
- put: compose
params:
path: blogRepo
project: app
service: blog
pull: true
upgrade: force
- put: compose
params:
path: blogRepo
service: blog
upgrade: confirm
This was heavily based on the nodejs version of this here: https://github.com/ndarilek/concourse-rancher-compose-resource
Content type
Image
Digest
Size
8 MB
Last updated
over 7 years ago
docker pull arwineap/rancher-compose-resource