Skip to content

Commit

Permalink
Replace the default latest version with the provided version
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Dec 14, 2023
1 parent d55840c commit ce144d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/prepare-resources-for-e2e-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ if [ -z "$E2E_VERSION" ]; then
fi

# replace placeholders
sed -i.bak "s#<CORE_VERSION>#$CORE_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#<OPTOUT_VERSION>#$OPTOUT_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#<OPERATOR_VERSION>#$OPERATOR_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#<E2E_VERSION>#$E2E_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#uid2-core:latest#uid2-core:$CORE_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#uid2-optout:latest#uid2-core:$OPTOUT_VERSION#g" $DOCKER_COMPOSE_FILE
sed -i.bak "s#uid2-operator:latest#uid2-operator:$OPERATOR_VERSION#g" $DOCKER_COMPOSE_FILE

cat $CORE_CONFIG_FILE
cat $OPTOUT_CONFIG_FILE
cat $OPERATOR_CONFIG_FILE
cat $DOCKER_COMPOSE_FILE

mkdir -p "$OPTOUT_MOUNT" && chmod 777 "$OPTOUT_MOUNT"
chmod 777 "$CORE_RESOURCE_FILE_DIR/init-aws.sh"
Expand Down

0 comments on commit ce144d3

Please sign in to comment.