fixing build pipeline to do security scan and docker build together
Security / security (push) Successful in 59s
Security / build (push) Successful in 2m13s

This commit is contained in:
2026-05-13 11:00:41 -05:00
parent b92dd4ee30
commit 8046e78bb6
2 changed files with 79 additions and 9 deletions
+2 -9
View File
@@ -1,25 +1,18 @@
name: Build and Push Docker Image
on:
workflow_run:
workflows:
- Security
types:
- completed
workflow_dispatch:
permissions:
contents: read
jobs:
build:
if: ${{ gitea.event.workflow_run.event == 'push' && gitea.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ gitea.event.workflow_run.head_sha }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -33,7 +26,7 @@ jobs:
- name: Compute image tag
id: tag
run: |
BRANCH="${{ gitea.event.workflow_run.head_branch }}"
BRANCH="${{ gitea.ref_name }}"
if [ "$BRANCH" = "main" ]; then
TAG="latest"