mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
Fix scorecard version
in Scorecard Docker images (#1480)
Co-authored-by: Azeem Shaikh <azeems@google.com>
This commit is contained in:
parent
361fbd0fc9
commit
b6272c79e1
@ -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*
|
||||
- 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']
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user