|
|
|
@ -1,6 +1,25 @@
|
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
|
|
# MULTIDEPLOY_CONFIG="default"
|
|
|
|
|
################################################################################
|
|
|
|
|
# ACME.sh 3rd party deploy plugin for multiple (same) services
|
|
|
|
|
################################################################################
|
|
|
|
|
# Authors: tomo2403 (creator), https://github.com/tomo2403
|
|
|
|
|
# Updated: 2024-07-03
|
|
|
|
|
# Issues: https://github.com/acmesh-official/acme.sh/issues/XXXXX
|
|
|
|
|
################################################################################
|
|
|
|
|
# Usage (shown values are the examples):
|
|
|
|
|
# 1. Set optional environment variables
|
|
|
|
|
# - export MULTIDEPLOY_CONFIG="default" - "default" will be automatically used if not set"
|
|
|
|
|
#
|
|
|
|
|
# 2. Run command:
|
|
|
|
|
# acme.sh --deploy --deploy-hook multideploy -d example.com
|
|
|
|
|
################################################################################
|
|
|
|
|
# Dependencies:
|
|
|
|
|
# - yq
|
|
|
|
|
################################################################################
|
|
|
|
|
# Return value:
|
|
|
|
|
# 0 means success, otherwise error.
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
MULTIDEPLOY_VERSION="1.0"
|
|
|
|
|
MULTIDEPLOY_FILENAME="multideploy.yml"
|
|
|
|
|