Skip to content

Commit 443fcb9

Browse files
Merge branch 'main' of github.com:structr/structr-deploy-action
2 parents e208b5b + bd78a58 commit 443fcb9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
neo4j-version: 'latest'
2929
structr-version: '5.2.1'
3030
structr-webapp-path: '${{ github.workspace }}/webapp'
31+
structr-conf-file: '${{ github.workspace }}/structr.conf'
3132
structr-license: '${{ secrets.STRUCTR_LICENSE }}'
3233
```

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ runs:
4545
run: >-
4646
./setup_environment.sh ${{ github.action_path }} &&
4747
cd ${{ github.action_path }} && docker compose up -d
48-
4948
shell: bash
5049

5150
- name: Deploy given webapp
5251
run: cd ${{ github.action_path }} && ./deploy.sh
53-
shell: bash
52+
shell: bash

setup_environment.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ sed -i "s|STRUCTR_LICENSE|$STRUCTR_LICENSE|g" docker-compose.yml &&
88
sed -i "s|STRUCTR_VERSION|$STRUCTR_VERSION|g" docker-compose.yml &&
99
sed -i "s|STRUCTR_WEBAPP_PATH|$STRUCTR_WEBAPP_PATH|g" docker-compose.yml &&
1010

11-
if [ -z ${STRUCTR_CONF_FILE:-"./structr.conf"} ]; then
11+
if [ -z "$STRUCTR_CONF_FILE" ]; then
12+
STRUCTR_CONF_FILE="./structr.conf"
1213
touch ./structr.conf
1314
fi
1415

15-
sed -i "s|STRUCTR_CONF_FILE|$STRUCTR_CONF_FILE|g" docker-compose.yml
16+
sed -i "s|STRUCTR_CONF_FILE|$STRUCTR_CONF_FILE|g" docker-compose.yml

0 commit comments

Comments
 (0)