Skip to content

Commit

Permalink
Add COMMIT_SHA to Scorecard docker image (#944)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <azeems@google.com>
  • Loading branch information
azeemshaikh38 and azeemsgoogle committed Sep 1, 2021
1 parent d6b6012 commit df2acb4
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions cloudbuild/scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

build:
images:
- gcr.io/openssf/scorecard:latest
options:
diskSizeGb: '200'
steps:
- args:
- build
- -t
- gcr.io/openssf/scorecard:latest
- -f
- Dockerfile
- .
name: gcr.io/cloud-builders/docker
description: 'builds image for scorecard '
github:
name: scorecard
owner: ossf
push:
branch: ^main$
name: scorecard
tags:
- scorecard
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '.',
'-t', 'gcr.io/openssf/scorecard:latest',
'-t', 'gcr.io/openssf/scorecard:$COMMIT_SHA'
'-f', 'Dockerfile']
images: ['gcr.io/openssf/scorecard']

0 comments on commit df2acb4

Please sign in to comment.