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 Jul 12, 2024
1 parent eea5826 commit 39523fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/heal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ 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
working-directory: ${{ secrets.work_dir }}
run: |
cd src/config
secret_value="${{ secrets.ORS_API_KEY }}"
sed -i "s/'put-here-an-ors-api-key'/'$secret_value'/g" 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 39523fc

Please sign in to comment.