Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2efe8b05b0 |
@@ -1,8 +1,7 @@
|
|||||||
name: Build & Release
|
name: Build & Release
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows:
|
workflows: [ "Run Tests" ]
|
||||||
- "Run Tests"
|
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
|
||||||
@@ -16,13 +15,8 @@ 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') }}
|
if: ${{ gitea.event.workflow_run.conclusion == 'success' && gitea.ref_type == 'tag' }}
|
||||||
runs-on: node20
|
runs-on: node20
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-24.04
|
image: catthehacker/ubuntu:act-24.04
|
||||||
@@ -31,7 +25,6 @@ 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
|
||||||
|
|||||||
@@ -2,10 +2,8 @@ name: Run Tests
|
|||||||
on:
|
on:
|
||||||
push: {}
|
push: {}
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
run-tests:
|
||||||
runs-on: python
|
runs-on: python
|
||||||
|
|||||||
Reference in New Issue
Block a user