Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9ac4a458c | |||
| 9932fd8b52 |
@@ -1,10 +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,13 +14,7 @@ env:
|
||||
|
||||
jobs:
|
||||
|
||||
build-branch:
|
||||
runs-on: node20
|
||||
steps:
|
||||
- run: echo "${{ gitea.event.workflow_run.head_branch }}"
|
||||
|
||||
build-docker-image:
|
||||
if: ${{ gitea.event.workflow_run.conclusion == 'success' && startsWith(gitea.event.workflow_run.head_branch, 'refs/tag') }}
|
||||
runs-on: node20
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-24.04
|
||||
@@ -31,7 +23,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
||||
ref: ${{ gitea.event.workflow_run.head_branch }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Devsoap Container Registry
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
name: Run Tests
|
||||
on:
|
||||
push: {}
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user