k8s.io/test-infra/triage@v0.0.0-20240520184403-27c6b4c223d8/Makefile (about)

     1  # Copyright 2020 The Kubernetes Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  .PHONY: build
    16  build:
    17  	go build .
    18  
    19  .PHONY: test
    20  test:
    21  	go test ./...
    22  
    23  STATIC_FILES=index.html interactive.js model.js render.js style.css
    24  
    25  # these need to be run by k8s-infra-prow or community members with access to the kubernetes.io GCP org
    26  push-static:
    27  	gsutil -h 'Cache-Control: no-store, must-revalidate' -m cp $(STATIC_FILES) gs://k8s-triage/
    28  
    29  push-staging:
    30  	gsutil -h 'Cache-Control: no-store, must-revalidate' -m cp $(STATIC_FILES) gs://k8s-triage/staging/
    31  
    32  # these need to be run by k8s-prow or googlers with access to the google.com GCP org
    33  redirect-static:
    34  	gsutil -h 'Cache-Control: no-store, must-revalidate' -m cp -a public-read redirect/index.html gs://k8s-gubernator/triage/
    35  
    36  redirect-staging:
    37  	gsutil -h 'Cache-Control: no-store, must-revalidate' -m cp -a public-read redirect/index.html gs://k8s-gubernator/triage/staging/
    38  
    39  .PHONY: push push-static push-staging redirect-static redirect-staging
    40