mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-06 19:19:59 +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:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
inputs:
|
|
||||||
imagename:
|
|
||||||
description: 'ACA Docker Image Name'
|
|
||||||
default: 'aca-centos7'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
imagename:
|
imagename:
|
||||||
@ -54,7 +48,15 @@ jobs:
|
|||||||
cp /HIRS/package/rpm/RPMS/x86_64/* /.; \
|
cp /HIRS/package/rpm/RPMS/x86_64/* /.; \
|
||||||
cp /HIRS/scripts/aca_image_setup.sh /.; \
|
cp /HIRS/scripts/aca_image_setup.sh /.; \
|
||||||
popd;' \
|
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 }}
|
- name: Build and publish a Docker image for ${{ github.repository }}
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
uses: macbre/push-to-ghcr@master
|
uses: macbre/push-to-ghcr@master
|
||||||
with:
|
with:
|
||||||
image_name: nsacyber/hirs/${{ inputs.imagename }}
|
image_name: nsacyber/hirs/${{ inputs.imagename }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user