3 Commits

Author SHA1 Message Date
d9ac4a458c Fix docker container startup script
All checks were successful
Run Tests / run-tests (push) Successful in 40s
Build & Release / build-docker-image (push) Successful in 1m44s
Build & Release / deploy-to-production (push) Successful in 7s
2026-05-02 16:18:53 +02:00
9932fd8b52 Do not run tests on tags
All checks were successful
Run Tests / run-tests (push) Successful in 40s
Build & Release / build-docker-image (push) Successful in 1m42s
Build & Release / deploy-to-production (push) Successful in 7s
2026-05-02 16:04:04 +02:00
18a0bd77bd Require tests pass before publishing new version
All checks were successful
Run Tests / run-tests (push) Successful in 44s
2026-05-02 15:48:44 +02:00
3 changed files with 10 additions and 7 deletions

View File

@@ -1,9 +1,8 @@
name: Build & Release
on:
workflow_run:
workflows: [ "Run Tests" ]
types:
- completed
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
env:
ENDPOINT: services-3
@@ -16,7 +15,6 @@ env:
jobs:
build-docker-image:
if: ${{ gitea.event.workflow_run.conclusion == 'success' && gitea.ref_type == 'tag' }}
runs-on: node20
container:
image: catthehacker/ubuntu:act-24.04

View File

@@ -1,9 +1,13 @@
name: Run Tests
on:
push: {}
workflow_dispatch:
push:
branches:
- '**'
env:
RUNNER_TOOL_CACHE: /toolcache
jobs:
run-tests:
runs-on: python

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env sh
set -e
STREAMLIT_SECRETS_LOCATION=".streamlit/secrets.toml"
touch STREAMLIT_SECRETS_LOCATION
touch $STREAMLIT_SECRETS_LOCATION
SQLITE_DATABASE="/data/daily-counter.db"
SQLITE_DATABASE_URL="sqlite://$SQLITE_DATABASE"