2023-07-21 09:14:17 +01:00
|
|
|
name: Fly Deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- trunk
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: Deploy app
|
2023-09-22 13:35:53 +01:00
|
|
|
runs-on: debian-latest-arm
|
2023-07-21 09:14:17 +01:00
|
|
|
steps:
|
2023-09-22 13:35:53 +01:00
|
|
|
- uses: actions/checkout@v3.6.0
|
2023-07-21 09:14:17 +01:00
|
|
|
with:
|
|
|
|
ref: trunk
|
|
|
|
- uses: https://github.com/superfly/flyctl-actions/setup-flyctl@master
|
|
|
|
- run: flyctl deploy --remote-only
|
|
|
|
env:
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
2023-10-23 20:23:17 +01:00
|
|
|
smoketest:
|
|
|
|
name: Smoketest
|
|
|
|
needs: deploy
|
|
|
|
runs-on: debian-latest-arm
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3.6.0
|
|
|
|
- name: Run k6 local test
|
|
|
|
uses: https://github.com/grafana/k6-action@v0.3.0
|
|
|
|
with:
|
|
|
|
filename: k6/smoketest.js
|
|
|
|
flags: -o experimental-prometheus-rw --tag testid=smoketest-${GITHUB_SHA}
|
|
|
|
env:
|
|
|
|
K6_PROMETHEUS_RW_SERVER_URL: ${{ secrets.PROMETHEUS_URL }}
|