Skip to content

Commit

Permalink
Merge pull request #4 from groeges/master
Browse files Browse the repository at this point in the history
Allow creation of a release build
  • Loading branch information
groeges authored Aug 19, 2020
2 parents 9ad57be + 637467b commit 6f7e3d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions ci/ext/post_package.d/create_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p $base_dir/ci/build/index-src
# url for downloading released assets
release_url="https://github.com/$TRAVIS_REPO_SLUG/releases/download"

# iterate over each repo
# iterate over each stack
for stack in $(ls $base_dir/*/stack.yaml 2>/dev/null | sort)
do
Expand Down Expand Up @@ -43,12 +42,17 @@ do
# Resolve external URL for local / github release
sed -e "s|${RELEASE_URL}/.*/|file://$assets_dir/|" $index_file_v2_temp > $index_file_local_v2
if [ "${BUILD_RELEASE}" == "true" ]; then
sed -e "s|${RELEASE_URL}/.*/|${RELEASE_URL}/${RELEASE_NAME}/|" $index_file_v2_temp > $index_file_v2
if [ ! -z $RELEASE_NAME ]; then
sed -e "s|${RELEASE_URL}/.*/|${RELEASE_URL}/${RELEASE_NAME}/|" $index_file_v2_temp > $index_file_v2
fi
fi
rm -f $base_dir/ci/build/index-src/*.yaml
sed -e "s|${RELEASE_URL}/.*/|{{EXTERNAL_URL}}/|" $index_file_v2_temp > $nginx_file
rm -f $index_file_v2_temp
fi
fi

popd

else
echo "SKIPPING: $repo_dir"
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/ext/pre_env.d/pre_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ then
fi
if [ -z "${IMAGE_REGISTRY_ORG}" ]
then
export IMAGE_REGISTRY_ORG="ICP4A"
export IMAGE_REGISTRY_ORG="icpa"
fi
if [ -z "${LATEST_RELEASE}" ]; then
export LATEST_RELEASE=true
Expand Down
2 changes: 1 addition & 1 deletion ci/list_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ do
echo "-------------------------------"
cat $index
echo "-------------------------------"
done
done

0 comments on commit 6f7e3d0

Please sign in to comment.