github.com/venafi-iw/cosign@v1.3.4/.ko.yaml (about)

     1  #
     2  # Copyright 2021 The Sigstore Authors.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  # We need a shell for a lot of redirection/piping to work
    17  defaultBaseImage: gcr.io/distroless/base:debug-nonroot
    18  
    19  builds:
    20  - id: cosign
    21    dir: .
    22    main: ./cmd/cosign
    23    env:
    24    - CGO_ENABLED=0
    25    flags:
    26    - -trimpath
    27    - -tags
    28    - "{{ .Env.GIT_HASH }}"
    29    - -tags
    30    - "{{ .Env.GIT_VERSION }}"
    31    ldflags:
    32    - -extldflags "-static"
    33    - "{{ .Env.LDFLAGS }}"
    34  
    35  - id: cosigned
    36    dir: .
    37    main: ./cmd/cosign/webhook
    38    env:
    39    - CGO_ENABLED=0
    40    flags:
    41    - -trimpath
    42    - --tags
    43    - "{{ .Env.GIT_HASH }}"
    44    - --tags
    45    - "{{ .Env.GIT_VERSION }}"
    46    ldflags:
    47    - -extldflags "-static"
    48    - "{{ .Env.LDFLAGS }}"
    49  
    50  - id: sget
    51    dir: .
    52    main: ./cmd/sget
    53    env:
    54    - CGO_ENABLED=0
    55    flags:
    56    - -trimpath
    57    - --tags
    58    - "{{ .Env.GIT_HASH }}"
    59    - --tags
    60    - "{{ .Env.GIT_VERSION }}"
    61    ldflags:
    62    - -extldflags "-static"
    63    - "{{ .Env.LDFLAGS }}"