Skip to content

Commit

Permalink
ci: add copy config step
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatRefrigerator committed Oct 17, 2023
1 parent 381837d commit 56c009d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/heal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
- name: hard reset to origin state
working-directory: ${{ secrets.work_dir }}
run: git reset --hard origin/${GITHUB_REF_NAME}
- name: copy example configs to config folder
working-directory: ${{ secrets.work_dir }}
run: cd src && cp config-examples/* config && for i in config/*-example.js; do mv -- "$i" "${i%-example.js}.js"; done
- name: Replace ORS API Key in app-config.js
run: |
cd src/config
secret_value="${{ secrets.ORS_API_KEY }}"
sed -i '' "s/orsApiKey: 'put-here-an-ors-api-key'/orsApiKey: '$secret_value'/" app-config.js
- name: build docker rebuild and restart
working-directory: ${{ secrets.work_dir }}
run: docker compose up --build --force-recreate -d

0 comments on commit 56c009d

Please sign in to comment.