chore: fix workflow files

This commit is contained in:
Raymond Tukpe
2022-08-16 16:24:21 +01:00
parent b5b790e84f
commit a8136ed2ad
3 changed files with 4 additions and 29 deletions

View File

@@ -18,4 +18,4 @@ jobs:
uses: ./
with:
typesense-version: ${{ matrix.typesense-version }}
typesense-container-name: typesense-auth-token-cache
typesense-container-name: typesense-custom

View File

@@ -1,17 +0,0 @@
name: Start Typesense server with latest version
on: [push, pull_request]
jobs:
typesense-action:
runs-on: ubuntu-latest
name: Start Typesense Server with latest Typesense version
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Start Typesense Server
uses: ./
with:
typesense-version: ${{ matrix.typesense-versions }}

View File

@@ -7,17 +7,9 @@ TYPESENSE_API_KEY=$4
if [ -z "$TYPESENSE_VERSION" ]; then
echo "Missing Typesense version in the [typesense-version] input. Received value: $TYPESENSE_VERSION"
echo "Falling back to Typesense version [0.23.1]"
TYPESENSE_VERSION='0.23.1'
echo "Falling back to Typesense version [latest]"
TYPESENSE_VERSION='latest'
fi
echo "Starting single-node Typesense instance"
# mkdir /tmp/typesense-data
docker run -d \
-p $TYPESENSE_PORT:8108 \
# -v/tmp/typesense-data:/data \
--name $TYPESENSE_CONTAINER_NAME \
typesense/typesense:$TYPESENSE_VERSION \
# --data-dir /data \
--api-key=$TYPESENSE_API_KEY \
--enable-cors
docker run -d -p $TYPESENSE_PORT:8108 --name $TYPESENSE_CONTAINER_NAME typesense/typesense:$TYPESENSE_VERSION --api-key=$TYPESENSE_API_KEY --data-dir /data --enable-cors