Created
May 10, 2021 10:22
-
-
Save russmiles/023bb5bdf048c0c7f8597942d24d4236 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run SLO reports of the Noteboard Frontend service | |
on: | |
push: | |
paths: | |
- '.github/workflows/frontend-service-ci.yaml' | |
- 'apps/noteboard-frontend/**' | |
env: | |
RELIABLY_TOKEN: ${{ secrets.RELIABLY_TOKEN }} | |
jobs: | |
reliably: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout source code to get the reliably manifest' | |
uses: actions/checkout@v2 | |
- name: 'Setup reliably CLI' | |
uses: reliablyhq/gh-action/setup@v1 | |
- name: 'Ensure our SLOs are fine or else bail the build' | |
run: | | |
echo ${GCP_SA_KEY} >> ./sa.json | |
reliably slo report --manifest apps/noteboard-frontend/reliably.yaml -f json > report.json | |
STATUS=$(cat report.json | jq -r '.services[0].service_levels[1].result.slo_is_met') | |
echo "Report ended with code: $STATUS" | |
if [[ $STATUS == "false" ]]; then | |
exit 1 | |
fi | |
env: | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment