forked from ubiquity/ubiquity-dollar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6c346b
commit c538efc
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
on: workflow_dispatch | ||
|
||
name: Setup Anvil on managed Cloudflared tunnel | ||
|
||
jobs: | ||
setup-anvil: | ||
name: Setup Anvil | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Setup Cloudflared | ||
uses: AnimMouse/setup-cloudflared@v1 | ||
with: | ||
cloudflare_tunnel_credential: ${{ secrets.CLOUDFLARE_TUNNEL_CREDENTIAL }} | ||
cloudflare_tunnel_configuration: ${{ secrets.CLOUDFLARE_TUNNEL_CONFIGURATION }} | ||
cloudflare_tunnel_id: ${{ secrets.CLOUDFLARE_TUNNEL_ID }} | ||
- name: Start Python HTTP server | ||
run: timeout 5m python -m http.server 8545 || true | ||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: 1 | ||
body: | | ||
Started cloudflared tunnel. | ||
- name: Shutdown and view logs of cloudflared | ||
if: always() | ||
uses: AnimMouse/setup-cloudflared/shutdown@v1 | ||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: 1 | ||
body: | | ||
Cloudflared tunnel shutdown. | ||
# - name: Run Anvil | ||
# run: anvil | ||
# shell: bash |