You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
communication-keys/example/cmd_sops.sh

19 lines
496 B
Bash

#!/usr/bin/env bash
set -ueo pipefail
curdir="$(realpath $( dirname "${BASH_SOURCE[0]}"))"
# keys_dir="$(realpath $( dirname "${BASH_SOURCE[0]}")/..)"
# sops_cfg_dir="${curdir}"
# secrets_file="${sops_cfg_dir}/mock_secrets.yaml"
# ---
keys_dir="$(dirname "${BASH_SOURCE[0]}")/.."
# deliberate just "dot" for current dir
sops_cfg_dir=.
secrets_file="mock_secrets.yaml"
# ./bin/update_sops.sh "${curdir}" "${PWD}"/
set -x
../bin/update_sops.sh "${keys_dir}" "${sops_cfg_dir}" "${secrets_file}"