Skip to content

Improve demo site deployment actions #79

Improve demo site deployment actions

Improve demo site deployment actions #79

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run build
deploy:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
strategy:
matrix:
service: [neogrok, zoekt]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo/fly.${{ matrix.service }}.toml --ignorefile demo/Dockerfile.${{ matrix.service }}.dockerignore