Skip to content

Commit ead20a9

Browse files
authored
Add gh action to reset db and timestamp tag (#148)
1 parent 4a3fcd3 commit ead20a9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
type=ref,event=pr
3030
type=semver,pattern={{version}}
3131
type=semver,pattern={{major}}.{{minor}}
32-
type=sha
32+
type=sha,prefix=,suffix=-{{date 'X'}}
3333
3434
- name: Login to ghcr.io
3535
uses: docker/login-action@v3

.github/workflows/reset-db.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: reset db
2+
env:
3+
HYPERGRAPH_URL: "https://hypergraph.service.pinax.network"
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
reset-db:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: curl reset-db
12+
run: |
13+
curl -L --fail-with-body -m 30 -X POST $HYPERGRAPH_URL/reset-db -H "Authorization: ${{ secrets.AUTH_TOKEN }}"

0 commit comments

Comments
 (0)