gabrielsimmer.com/.gitea/workflows/flyctl-deploy.yml
Gabriel Simmer 41bdd2b429
Some checks failed
Fly Deploy / Deploy app (push) Failing after 2m48s
Fly Deploy / Smoketest (push) Has been skipped
Experimental k6 smoketest
2023-10-23 20:23:17 +01:00

32 lines
854 B
YAML

name: Fly Deploy
on:
push:
branches:
- trunk
jobs:
deploy:
name: Deploy app
runs-on: debian-latest-arm
steps:
- uses: actions/checkout@v3.6.0
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 }}
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 }}