Require tests pass before publishing new version
All checks were successful
Run Tests / run-tests (push) Successful in 44s

This commit is contained in:
2026-05-02 12:33:45 +02:00
parent 450533414e
commit 18a0bd77bd
2 changed files with 15 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
name: Build & Release name: Build & Release
on: on:
push: workflow_run:
tags: workflows:
- '[0-9]+.[0-9]+.[0-9]+' - "Run Tests"
types:
- completed
env: env:
ENDPOINT: services-3 ENDPOINT: services-3
@@ -14,7 +16,13 @@ env:
jobs: jobs:
build-branch:
runs-on: node20
steps:
- run: echo "${{ gitea.event.workflow_run.head_branch }}"
build-docker-image: build-docker-image:
if: ${{ gitea.event.workflow_run.conclusion == 'success' && startsWith(gitea.event.workflow_run.head_branch, 'refs/tag') }}
runs-on: node20 runs-on: node20
container: container:
image: catthehacker/ubuntu:act-24.04 image: catthehacker/ubuntu:act-24.04
@@ -23,6 +31,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
ref: ${{ gitea.event.workflow_run.head_branch }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Devsoap Container Registry - name: Login to Devsoap Container Registry

View File

@@ -1,8 +1,11 @@
name: Run Tests name: Run Tests
on: on:
push: {} push: {}
workflow_dispatch:
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
jobs: jobs:
run-tests: run-tests:
runs-on: python runs-on: python