summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cyberark/conjur/ci/build_release
blob: 07baf8898bcbf78a39f68fbf4ab8a81025004a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -euo pipefail

TOP_LEVEL_DIR="$(cd "$(dirname "$BASH_SOURCE")"; pwd)/.."

pushd "$TOP_LEVEL_DIR" >/dev/null
  docker run --rm -t \
    -v "$TOP_LEVEL_DIR:/collection" \
    python:3 /bin/bash -c "
      pip install ansible
      ansible-galaxy collection build --force --output /collection/. /collection
    "
popd >/dev/null