Sha256: 31798e3f05e7377296f86f30441f551d9fb90c4082446e8509fb0f3f117dfe66

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

#!/bin/bash -e

distribution=$1
component=$2

if [ "$distribution" == "" ]; then
  echo Distribution is required
  exit 1
fi
if [ "$component" == "" ]; then
  echo Component is required
  exit 1
fi

if [ "$ART_USERNAME" == "" -o "$ART_PASSWORD" == "" ]; then
  echo Usage: summon -f ci/secrets/publish.yml ./publish.sh
  exit 1
fi

docker build -t conjur-cli-publish -f Dockerfile.publish .

for package in *.deb; do
  echo Publishing "$package"
  docker run \
    --rm \
    -v $PWD/tmp/deb:/src \
    conjur-cli-publish \
    upload \
    --url https://conjurinc.artifactoryonline.com/conjurinc \
    --user $ART_USERNAME \
    --password $ART_PASSWORD \
    --deb "$distribution"/"$component"/amd64 \
    $package \
    debian-public
done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-cli-5.1.2 ci/publish.sh
conjur-cli-5.1.1 ci/publish.sh
conjur-cli-5.1.0 ci/publish.sh