mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-29 15:44:14 +00:00
Added condition for release workflow
This commit is contained in:
parent
b2a90db1cf
commit
8b3bfef68f
14
.github/workflows/build_aca_image.yml
vendored
14
.github/workflows/build_aca_image.yml
vendored
@ -2,12 +2,6 @@ name: ACA Docker Image Build
|
||||
on:
|
||||
release:
|
||||
types: [ published ]
|
||||
inputs:
|
||||
imagename:
|
||||
description: 'ACA Docker Image Name'
|
||||
default: 'aca-centos7'
|
||||
required: false
|
||||
type: string
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
imagename:
|
||||
@ -54,7 +48,15 @@ jobs:
|
||||
cp /HIRS/package/rpm/RPMS/x86_64/* /.; \
|
||||
cp /HIRS/scripts/aca_image_setup.sh /.; \
|
||||
popd;' \
|
||||
- name: Build and publish a release Docker image for ${{ github.repository }}
|
||||
if: github.event_name == 'release'
|
||||
uses: macbre/push-to-ghcr@master
|
||||
with:
|
||||
image_name: nsacyber/hirs/aca-centos7
|
||||
github_token: ${{ secrets.GHCR_TOKEN }}
|
||||
dockerfile: "./.ci/docker/Dockerfile.acaimage"
|
||||
- name: Build and publish a Docker image for ${{ github.repository }}
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: macbre/push-to-ghcr@master
|
||||
with:
|
||||
image_name: nsacyber/hirs/${{ inputs.imagename }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user