...

Text file src/github.com/sigstore/timestamp-authority/.ko.yaml

Documentation: github.com/sigstore/timestamp-authority

     1#
     2# Copyright 2022 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
    17defaultBaseImage: ghcr.io/chainguard-images/static:latest
    18
    19builds:
    20  - id: timestamp-cli
    21    dir: .
    22    main: ./cmd/timestamp-cli
    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: timestamp-server
    36    dir: .
    37    main: ./cmd/timestamp-server
    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 }}"

View as plain text