Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
When doing full build ensure we get correct index
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Groeger <[email protected]>
  • Loading branch information
groeges committed Feb 20, 2020
1 parent df990f7 commit f2d2924
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/ci/build
/ci/release
/ci/nginx/docker-compose.override.yml
/cli
**/00_local
**/.DS_Store
**/node_modules
Expand Down
9 changes: 7 additions & 2 deletions ci/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ exec_hooks $script_dir/ext/pre_package.d
for repo_name in $REPO_LIST
do
repo_dir=$base_dir/$repo_name
if [ "${BUILD_ALL}" == "true" ]
then
echo "apiVersion: v2" > $HOME/.appsody/stacks/dev.local/$repo_name-index.yaml
echo "stacks:" >> $HOME/.appsody/stacks/dev.local/$repo_name-index.yaml
fi
useCachedIndex="--use-local-cache"
if [ -d $repo_dir ]
then
Expand Down Expand Up @@ -121,7 +126,7 @@ do
echo -e "\n- ADD $repo_name with release URL prefix $RELEASE_URL/$stack_id-v$stack_version/$repo_name."
if appsody stack add-to-repo $repo_name \
--release-url $RELEASE_URL/$stack_id-v$stack_version/$repo_name. \
$useCachedIndex
-v $useCachedIndex
then
useCachedIndex="--use-local-cache"
else
Expand Down Expand Up @@ -209,4 +214,4 @@ else
stderr "${build_dir}/image.$INDEX_IMAGE.${INDEX_VERSION}.log"
stderr "failed building $IMAGE_REGISTRY/$IMAGE_REGISTRY_ORG/$INDEX_IMAGE:${INDEX_VERSION}"
exit 1
fi
fi

0 comments on commit f2d2924

Please sign in to comment.