Open utterances-bot opened 2 months ago
Hi David, I failed to implement yur solutions so I mae these changes:
name: Trigger Probe of Deployed App on a CRON Schedule on: schedule:
- cron: '0 */48 * * *'
workflow_dispatch:
jobs: build-and-probe: runs-on: ubuntu-latest steps:
name: Checkout Repository uses: actions/checkout@v2
name: Build Docker Image run: docker build -t my-probe-image -f probe-action/Dockerfile .
name: Run Docker Container run: docker run --rm my-probe-image
FROM ghcr.io/puppeteer/puppeteer:17.0.0 COPY ./probe-action/probe.js /home/pptruser/src/probe.js ENTRYPOINT [ "/bin/bash", "-c", "node -e \"$(</home/pptruser/src/probe.js)\"" ]
Thanks for the tip, it is excellent !
Automating a Keep-Alive Probe for Deployed Apps
Automating a keep-alive probe for a deployed streamlit app using puppeteer and Github Actions.
https://dcyoung.github.io/post-streamlit-keep-alive/