Deploy concourse directory over rsync
1M+
concourse.ci resource for persisting build artifacts on a remote server and activating directory using rsync and ssh.
server|servers: Required Server or list of servers on which to persist artifacts. If servers are used first one in the list will be used for in and check origins.port: Optional Server SSH port, default is port 22remote_dir: Required Directory to place artifacts on remote server(s)remote_user: Required User credential for login using sshprivate_key: Required Key for the specified userrestart_service: Optional Optionally restart a service on the remote host(s)All config required for each of the out behavior.
resource_types:
- name: deploy-resource
type: docker-image
source:
repository: scottsmith/concourse-deploy-resource
tag: latest
resources:
- name: sync-resource
type: deploy-resource
source:
server: server
remote_dir: /var/sites
user : user
private_key: |
...
- name: sync-resource-multiple
type: rsync-resource
source:
servers:
- server1
- server2
remote_dir: /var/sites
user : user
private_key: |
...
jobs:
-name: my_great_job
plan:
...
put: sync-resource
params:
sync_dir: my_output_dir
repo_name: your-project-name
put: sync-resource
params:
sync_dir: my_output_dir
rsync_opts:
-Pav
--del
--chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r
check : Check for new versions of artifactsReturn an empty version
in : retrieve a given artifacts from serverReturn an empty version
out : place a new artifact on serverGenerate a new version number an associated directory in remote_dir on server using the specified user credential.
Rsync across artifacts from the input directory to the server and re-create a symlink with the name repo_name to the generated directory name and output the version
sync_dir: Optional. Directory to be sync'd. If specified limit the directory to be sync'd to sync_dir. If not specified everything in the put will be sent (which could include container resources, whole build trees etc.)repo_name: Required The symbolic link name to the generated direct name pushed onto remote serverrsync_opts: Optional Optional parameters to rsyncpost_run: Optional Run cmd(s) after deployment. ie. php deploys can restart the php-fpm/apache2 serviceContent type
Image
Digest
Size
8.2 MB
Last updated
almost 8 years ago
docker pull scottsmith/concourse-deploy-resource