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