Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 18a0bd77bd |
@@ -1,8 +1,10 @@
|
||||
name: Build & Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
workflow_run:
|
||||
workflows:
|
||||
- "Run Tests"
|
||||
types:
|
||||
- completed
|
||||
|
||||
env:
|
||||
ENDPOINT: services-3
|
||||
@@ -14,7 +16,13 @@ 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
|
||||
@@ -23,6 +31,7 @@ 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,8 +1,11 @@
|
||||
name: Run Tests
|
||||
on:
|
||||
push: {}
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
runs-on: python
|
||||
|
||||
Reference in New Issue
Block a user