Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Special VTs case for unpacking artifact #105

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/container-build-push-feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ on:
description: "The artifact path to extract the artifact into."
required: false
type: string
vts:
description: "Is this the vts image?"
default: false
type: string

secrets:
COSIGN_KEY_OPENSIGHT:
Expand Down Expand Up @@ -71,12 +75,19 @@ jobs:
with:
ref: ${{ inputs.ref-name }}

- uses: actions/download-artifact@v4
- name: Download Artifact ${{ inputs.artifact-name }} to ${{ inputs.artifact-path }}
uses: actions/download-artifact@v4
if: inputs.artifact-name
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}

- name: Unpack vulnerability-tests feed content
if: inputs.vts == 'true'
run: |
cd ${{ inputs.artifact-path }}
tar -xJf vulnerability-tests.tar.xz

- name: Container build and push 2nd gen
id: build-and-push
uses: greenbone/actions/container-build-push-generic@v3
Expand Down Expand Up @@ -105,12 +116,19 @@ jobs:
with:
ref: ${{ inputs.ref-name }}

- uses: actions/download-artifact@v4
- name: Download Artifact ${{ inputs.artifact-name }} to ${{ inputs.artifact-path }}
uses: actions/download-artifact@v4
if: inputs.artifact-name
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}

- name: Unpack vulnerability-tests feed content
if: inputs.vts == 'true'
run: |
cd ${{ inputs.artifact-path }}
tar -xJf vulnerability-tests.tar.xz

- name: Container build and push 3rd gen
id: build-and-push
uses: greenbone/actions/container-build-push-generic@v3
Expand Down