-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #812 from jan-stanek/illness-type
Nabídky očkování pro jiné onemocnění
- Loading branch information
Showing
23 changed files
with
343 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: update-web | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
concurrency: production_env | ||
|
||
jobs: | ||
deploy: | ||
name: Update static pages - offers | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
environment: production | ||
runs-on: ubuntu-22.04 | ||
env: | ||
APP_DIR: '${HOME}/prd/app' | ||
SSH_HOST: ${{ secrets.SSH_HOST }} | ||
SSH_KEY: ${{ secrets.SSH_KEY }} | ||
SSH_PORT: ${{ secrets.SSH_PORT }} | ||
SSH_USER_WEB: ${{ secrets.SSH_USER_WEB }} | ||
steps: | ||
- name: Setup SSH key | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
ssh-keyscan -H ${SSH_HOST} >> ~/.ssh/known_hosts | ||
eval `ssh-agent -s` | ||
echo "${SSH_KEY}" | tr -d '\r' | ssh-add - | ||
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV | ||
- name: Check if webserver is running | ||
run: ssh ${SSH_USER_WEB}@${SSH_HOST} -p ${SSH_PORT} "systemctl status ockovani-prd.service" | ||
- name: Create static pages | ||
run: ssh ${SSH_USER_WEB}@${SSH_HOST} -p ${SSH_PORT} "bash ${APP_DIR}/scripts/create_static_pages_offers.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.