#!/usr/bin/env bash

set -e

: ${bosh_release_name:?must be set}
: ${cpi_release_name:?must be set}
: ${stemcell_name:?must be set}

timestamp=`date -u +"%Y-%m-%dT%H-%M-%SZ"`
bosh_release_version=$(cat bosh-release/version)
cpi_release_version=$(cat bosh-cpi-release/version)
stemcell_version=$(cat stemcell/version)

certify-artifacts --release $bosh_release_name/$bosh_release_version \
                  --release $cpi_release_name/$cpi_release_version \
                  --stemcell $stemcell_name/$stemcell_version \
                  > certification-receipt/$timestamp-receipt.json

#!/usr/bin/env bash

set -e

: ${bosh_release_name:?must be set}
: ${cpi_release_name:?must be set}
: ${stemcell_name:?must be set}

timestamp=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
bosh_release_version=$(cat bosh-release/version)
cpi_release_version=$(cat bosh-cpi-release/version)
stemcell_version=$(cat stemcell/version)

certify-artifacts --release $bosh_release_name/$bosh_release_version \
                  --release $cpi_release_name/$cpi_release_version \
                  --stemcell $stemcell_name/$stemcell_version \
                  > certification-receipt/$timestamp-receipt.json

Revert "Fixes receipt naming to avoid colons in the URL."
Revert "Fixes receipt naming to avoid colons in the URL."

This reverts commit 39bf9652e81b0231c36a5bfa6c78a51ffea63c0d.
