Skip to content

Commit 53d509c

Browse files
authored
Remove Flyctl setup and db update from build.yml
Removed Flyctl setup and database update steps from the build workflow.
1 parent 483d185 commit 53d509c

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,6 @@ jobs:
6565
asset_name: nlrb.db.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
6666
asset_content_type: application/zip # required by GitHub API
6767
max_releases: 7 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
68-
- name: Setup Flyctl
69-
uses: superfly/flyctl-actions/setup-flyctl@v1
70-
- name: Update db in fly
71-
env:
72-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
73-
run: |
74-
curl -I https://warehouse.fly.dev/
75-
gzip nlrb.db
76-
flyctl ssh sftp put nlrb.db.gz /dbs/nlrb.db.gz -a warehouse
77-
flyctl ssh console -C 'flock /tmp/inspect.lock -c "cd /dbs && gunzip -f /dbs/nlrb.db.gz && datasette inspect /dbs/*.db --inspect-file /dbs/inspect-data.json"' -a warehouse
78-
flyctl apps restart warehouse
7968
workflow-keepalive:
8069
if: github.event_name == 'schedule'
8170
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)