fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
673 B

  1. #!/bin/bash
  2. . lib/common
  3. ## XXXvlab: all this to escape forced stdout capture
  4. VCS_MANAGER_NAME=$(
  5. charm=$(get_service_charm "$TARGET_SERVICE_NAME")
  6. SERVICE_DATASTORE="$DATASTORE/$TARGET_SERVICE_NAME" charm.run_direct_action "$charm" info name
  7. #run_service_action "$TARGET_SERVICE_NAME" info name
  8. ) || {
  9. err "vcs-manager $TARGET_SERVICE_NAME was not able to return a name upon query."
  10. exit 1
  11. }
  12. ## this drone server url is a direct access to gitea, mainly
  13. ## to check credentials with the vcs manager.
  14. config-add "\
  15. services:
  16. $MASTER_BASE_SERVICE_NAME:
  17. environment:
  18. DRONE_${VCS_MANAGER_NAME^^}_SERVER: http://$TARGET_SERVICE_NAME:3000/
  19. "