Fix scorecard version in Scorecard Docker images (#1480)

Co-authored-by: Azeem Shaikh <azeems@google.com>
This commit is contained in:
Azeem Shaikh 2022-01-14 11:34:22 -08:00 committed by GitHub
parent 361fbd0fc9
commit b6272c79e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 20 deletions

View File

@ -12,23 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
build:
images:
- gcr.io/openssf/scorecard:$TAG_NAME
options: {}
steps:
- args:
- build
- -t
- gcr.io/openssf/scorecard:$TAG_NAME
- .
name: gcr.io/cloud-builders/docker
description: scorecard build based on tag
github:
name: scorecard
owner: ossf
push:
tag: .*
name: scorecard-tag
tags:
- v*
steps:
- id: 'Get Git history'
name: 'gcr.io/cloud-builders/git'
args: ['fetch', '--unshallow', '--tags', 'origin', '$COMMIT_SHA']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '.',
'-t', 'gcr.io/openssf/scorecard:stable',
'-t', 'gcr.io/openssf/scorecard:$TAG_NAME',
'-f', 'Dockerfile']
images: ['gcr.io/openssf/scorecard']

View File

@ -13,6 +13,9 @@
# limitations under the License.
steps:
- id: 'Get Git history'
name: 'gcr.io/cloud-builders/git'
args: ['fetch', '--unshallow', '--tags', 'origin', '$COMMIT_SHA']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '.',
'-t', 'gcr.io/openssf/scorecard:latest',