Skip to content

Commit

Permalink
[nc] iterate on artifact creation and upload
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cheneweth <[email protected]>
  • Loading branch information
ncheneweth committed Oct 21, 2024
1 parent 48859f3 commit 197c142
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/job-container-dev-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,21 +333,6 @@ jobs:
dockerfile: ${{ inputs.dockerfile }}
extra-build-args: ${{ inputs.extra-build-args }}

- name: test
shell: bash
run: |
pwd
ls -la
echo "try to cat ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.tag }}_docker_build.log"
cat ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.tag }}_docker_build.log
# - name: upload build log as saved artifact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.tag }}_docker_build.log
# path: *_docker_build.log
# retention-days: 7

- name: perform snyk cve scan
if: ${{ inputs.snyk-scan == 'true' }}
uses: ThoughtWorks-DPS/gha-tools-action/snyk-scan@main
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ jobs:
syft-version: ${{ inputs.syft-version }}
oras-version: ${{ inputs.oras-version }}

- uses: actions/download-artifact@v4
with:
name: ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.version-tag }}_docker_build.log
path: ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.version-tag }}_docker_build.log

- name: run custom before-publish action
if: ${{ inputs.before-publish != 'false' }}
uses: ./.github/actions/before-publish
Expand Down Expand Up @@ -258,11 +263,6 @@ jobs:
image: ${{ inputs.image }}
tag: ${{ inputs.tag-annotation }}${{ inputs.release-tag }}

- uses: actions/download-artifact@v4
with:
name: ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.version-tag }}_docker_build.log
path: ${{ inputs.image }}_${{ inputs.tag-annotation }}${{ inputs.version-tag }}_docker_build.log

- name: run custom after-publish action
if: ${{ inputs.after-publish != 'false' }}
uses: ./.github/actions/after-publish
Expand Down
2 changes: 1 addition & 1 deletion snyk-scan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ runs:
run: |
#!/usr/bin/env bash
set -eo pipefail
outfilename="${{ inputs.image }}_${{ inputs.tag }}_trivy_scan.log"
outfilename="${{ inputs.image }}_${{ inputs.tag }}_snyk_scan.log"
echo "outfilename=$outfilename" >> $GITHUB_ENV
Expand Down

0 comments on commit 197c142

Please sign in to comment.