Skip to content

Commit

Permalink
Merge pull request #53 from draios/dont_build_unknown_platform
Browse files Browse the repository at this point in the history
DEVOPS-000 add flag for provenance https://github.com/docker/build-push-action/r…
  • Loading branch information
mbreitung authored Apr 9, 2024
2 parents 15ed644 + 537f6dc commit 3fa28e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: 'Build And Push'
description: GitHub Action for build and push docker images - Sysdig way'
name: "Build And Push"
description: GitHub Action for build and push docker images - Sysdig way
outputs:
names:
description: "Image names"
value: ${{ steps.build_image_names.outputs.names }}
tags:
description: "git tag version calculated"
description: "Git tag version calculated"
value: ${{ steps.meta.outputs.tags }}
labels:
description: "Labels added to container image"
Expand Down Expand Up @@ -52,6 +52,11 @@ inputs:
required: false
default: ""

provenance:
description: "build single image without extra unknown/unknown platform tags"
required: false
default: "false"

# Needed when run_scanner is true
sysdig_secure_token:
description: "API token for Sysdig Scanning auth"
Expand Down Expand Up @@ -291,6 +296,7 @@ runs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
load: true
provenance: ${{ inputs.provenance }}

# Scan only one container name
# This is needed because if you add/enable the push to quay.io, gar or artifactory (or all of them), there is a list of images with different registries.
Expand Down Expand Up @@ -327,6 +333,7 @@ runs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ steps.platforms_list.outputs.image_platforms }}
provenance: ${{ inputs.provenance }}

- name: Save image to file
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 3fa28e3

Please sign in to comment.