diff --git a/.github/workflows/container-build-push-feed.yml b/.github/workflows/container-build-push-feed.yml index dc40b44..acdbd83 100644 --- a/.github/workflows/container-build-push-feed.yml +++ b/.github/workflows/container-build-push-feed.yml @@ -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: @@ -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 @@ -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