github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/charts/kuberpult/Makefile (about)

     1  # This file is part of kuberpult.
     2  
     3  # Kuberpult is free software: you can redistribute it and/or modify
     4  # it under the terms of the Expat(MIT) License as published by
     5  # the Free Software Foundation.
     6  
     7  # Kuberpult is distributed in the hope that it will be useful,
     8  # but WITHOUT ANY WARRANTY; without even the implied warranty of
     9  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    10  # MIT License for more details.
    11  
    12  # You should have received a copy of the MIT License
    13  # along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>.
    14  
    15  # Copyright 2023 freiheit.com
    16  
    17  include ../../Makefile.variables
    18  MAKEFLAGS += --no-builtin-rules
    19  
    20  TGZ_FILE := kuberpult-$(VERSION).tgz
    21  
    22  Chart.yaml:
    23  	earthly +chart.yaml --VERSION=$(VERSION)
    24  
    25  $(TGZ_FILE):
    26  	earthly +chart-tarball --VERSION=$(VERSION)
    27  
    28  ci/test-values.yaml:
    29  	earthly +test-values.yaml
    30  
    31  ct-test:
    32  ifeq ($(CI),true)
    33  	@echo "running on CI no need to test this again! Check chart testing action."
    34  else
    35  	earthly +ct-test --VERSION=$(VERSION)
    36  endif
    37  
    38  test-helm:
    39  	earthly +test-helm --VERSION=$(VERSION)
    40  
    41  test:
    42  	earthly +test --VERSION=$(VERSION)
    43  
    44  clean:
    45  	earthly +clean --VERSION=$(VERSION)
    46  
    47  release-tag: $(TGZ_FILE)
    48  	echo "Creating release via git tag pipeline"
    49  
    50  .PHONY: clean
    51  
    52  all: Chart.yaml