Skip to content

Commit

Permalink
use repo compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed May 24, 2024
1 parent bdf4b19 commit 36733f0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,23 +150,8 @@ staging|prod)
;;
esac

GH_REPO_PREFIX=$(zzz uggcf://tvguho.pbz/zrqvnpybhq)
GH_REPO_NAME=$(zzz arjf-frnepu-ncv)
DOCKER_COMPOSE_FILE="docker-compose.yml"

if $USE_LATEST_IMAGE; then
BRANCH_OR_TAG=$(git rev-parse --abbrev-ref HEAD)
else
BRANCH_OR_TAG=$IMAGE_TAG
fi

mv -f docker-compose.yml docker-compose-old.yml
echo "Fetching $DOCKER_COMPOSE_FILE from $GH_REPO_NAME repo..."
if ! curl -sSfL "$GH_REPO_PREFIX/$GH_REPO_NAME/raw/$BRANCH_OR_TAG/$DOCKER_COMPOSE_FILE" -o "$(pwd)/$DOCKER_COMPOSE_FILE"; then
echo "FATAL: Could not fetch $DOCKER_COMPOSE_FILE from config repo"
exit 1
fi

export INDEXES="mc_search"
export ESOPTS='{"timeout": 60, "max_retries": 3}' # 'timeout' parameter is deprecated
export ELASTICSEARCH_INDEX_NAME_PREFIX="mc_search-*"
Expand Down

0 comments on commit 36733f0

Please sign in to comment.