Skip to content

deps: bumped version to 7.2.1 #26

deps: bumped version to 7.2.1

deps: bumped version to 7.2.1 #26

Workflow file for this run

name: Build template
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker image
run: docker compose build
- name: Run docker container
run: docker compose up -d
- name: Test if service is reachable
run: |
sleep 30
curl -vsfL --retry 10 --retry-connrefused http://localhost:8000/
- name: Report error to Sentry
if: failure()
run: |
curl -sL https://sentry.io/get-cli/ | bash
export SENTRY_DSN=${{ secrets.SENTRY_DSN }}
MESSAGE_HEAD='Template: "${{ github.workflow }}" failed in ${{ github.repository }}.'
MESSAGE_BODY='Check <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}> for more details.'
sentry-cli send-event -m "$MESSAGE_HEAD" -m "$MESSAGE_BODY" --log-level=error