Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
reevejd committed Sep 22, 2023
1 parent f15fe85 commit 04cf503
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,38 +162,38 @@ jobs:
# echo "cache-to=type=gha,mode=max" >> $GITHUB_OUTPUT
fi
- name: Build and push image to scan
if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }}
uses: docker/build-push-action@v5
with:
# If your Dockerfile is not present in the root directory
# change it to the correct subdirectory name
context: ${{ inputs.docker_context }}
file: ${{ inputs.docker_file }}
target: ${{ inputs.docker_target }}
push: true
tags: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
outputs: type=oci
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ steps.should-cache.outputs.cache-from }}
cache-to: ${{ steps.should-cache.outputs.cache-to }}
secrets: |
"oban_key_fingerprint=${{ secrets.OBAN_KEY_FINGERPRINT }}"
"oban_license_key=${{ secrets.OBAN_LICENSE_KEY }}"
"IBM_CLOUD_API_KEY=${{ secrets.IBM_CLOUD_API_KEY }}"
${{ inputs.docker_secrets }}
build-args: |-
SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }}
SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com
- name: Scan image
if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }}
uses: ibm-skills-network/action-scan-container-image@main
with:
image: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
travis_api_token: ${{ secrets.TRAVIS_API_TOKEN }}
image_scan_result_cos_api_token: ${{ secrets.CONTAINER_IMAGE_SCAN_RESULT_COS_API_KEY }}
fail_if_overdue: ${{ inputs.scan_fail_if_overdue }}
# - name: Build and push image to scan
# if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }}
# uses: docker/build-push-action@v5
# with:
# # If your Dockerfile is not present in the root directory
# # change it to the correct subdirectory name
# context: ${{ inputs.docker_context }}
# file: ${{ inputs.docker_file }}
# target: ${{ inputs.docker_target }}
# push: true
# tags: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
# outputs: type=oci
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: ${{ steps.should-cache.outputs.cache-from }}
# cache-to: ${{ steps.should-cache.outputs.cache-to }}
# secrets: |
# "oban_key_fingerprint=${{ secrets.OBAN_KEY_FINGERPRINT }}"
# "oban_license_key=${{ secrets.OBAN_LICENSE_KEY }}"
# "IBM_CLOUD_API_KEY=${{ secrets.IBM_CLOUD_API_KEY }}"
# ${{ inputs.docker_secrets }}
# build-args: |-
# SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }}
# SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com
#
# - name: Scan image
# if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }}
# uses: ibm-skills-network/action-scan-container-image@main
# with:
# image: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
# travis_api_token: ${{ secrets.TRAVIS_API_TOKEN }}
# image_scan_result_cos_api_token: ${{ secrets.CONTAINER_IMAGE_SCAN_RESULT_COS_API_KEY }}
# fail_if_overdue: ${{ inputs.scan_fail_if_overdue }}

- name: Build and push
id: build-push
Expand Down

0 comments on commit 04cf503

Please sign in to comment.