Skip to content

Commit

Permalink
fix(.github): bump spin to v2.0.1; fix/update sqlite list (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice authored Dec 11, 2023
1 parent 9ee3f08 commit 6bf79e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
wget https://github.com/tinygo-org/tinygo/releases/download/v0.27.0/tinygo_0.27.0_amd64.deb
sudo dpkg -i tinygo_0.27.0_amd64.deb
- name: Install spin
run: |
curl -LOs https://github.com/fermyon/spin/releases/download/v1.4.1/spin-v1.4.1-linux-amd64.tar.gz
tar zxvf spin-v1.4.1-linux-amd64.tar.gz
mv spin /usr/local/bin
- name: Install Spin
uses: fermyon/actions/spin/setup@v1
with:
version: v2.0.1

- name: Install node
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup Spin
uses: fermyon/actions/spin/setup@v1
with:
version: v1.4.1
version: v2.0.1

- name: Login to Fermyon Cloud
run: spin cloud login --token "${{ secrets.FERMYON_CLOUD_TOKEN }}"
Expand All @@ -46,5 +46,5 @@ jobs:
- name: Run sqlite migration(s)
run: |
# NOTE: workaround for not being able to use 'default' as the database name
SQLITE_DB_NAME="$(spin cloud sqlite list | grep 'default' | cut -d ' ' -f1)"
SQLITE_DB_NAME="$(spin cloud sqlite list -a finicky-whiskers --format json | jq -j '.[].database')"
spin cloud sqlite execute "$SQLITE_DB_NAME" "@highscore/migration.sql"

0 comments on commit 6bf79e7

Please sign in to comment.