Files
offline_kubespray/collection/cyberark/conjur/ci/publish_to_galaxy
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

16 lines
387 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Strip the 'v' from the Tag Name
TAG=${TAG_NAME//"v"}
CURRENT_DIR="$(cd "$(dirname "$BASH_SOURCE")"; pwd)"
pushd "$CURRENT_DIR/.." >/dev/null
docker run --rm -t \
-v "$CURRENT_DIR/..:/runner" \
ansible/ansible-runner \
ansible-galaxy collection publish --api-key="${GALAXY_API_KEY}" /runner/cyberark-conjur-${TAG}.tar.gz
popd >/dev/null