for server in $(govuk_node_list -c backend); do
  rsync -r dist/* deploy@$server:/data/apps/publishing-api/shared/govuk-content-schemas/
done

for server in $(govuk_node_list -c content_store); do
  rsync -r dist/* deploy@$server:/data/apps/content-store/shared/govuk-content-schemas/
done

for server in $(govuk_node_list -c backend); do
  rsync -r dist/* deploy@$server:/data/apps/publishing-api/shared/govuk-content-schemas/
done

for server in $(govuk_node_list -c "draft_content_store,content_store"); do
  rsync -r dist/* deploy@$server:/data/apps/content-store/shared/govuk-content-schemas/
done

Deploy schemas to draft content store
Deploy schemas to draft content store
