From 2045bd2e8f2367d65a27b931ee1a327f5ef55d4e Mon Sep 17 00:00:00 2001 From: Tim Schrodi Date: Wed, 30 Jun 2021 08:04:47 +0200 Subject: [PATCH] add pipeline definition --- .ci/pipeline_definitions | 30 ++++++++++++++++++++++++++++++ .ci/verify | 15 +++++++++++++++ Makefile | 4 ++-- VERSION | 2 +- 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 .ci/pipeline_definitions create mode 100755 .ci/verify diff --git a/.ci/pipeline_definitions b/.ci/pipeline_definitions new file mode 100644 index 0000000..b536db9 --- /dev/null +++ b/.ci/pipeline_definitions @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors +# +# SPDX-License-Identifier: Apache-2.0 + +image-vector: + template: 'default' + base_definition: + repo: ~ + traits: + version: + preprocess: 'inject-commit-hash' + inject_effective_version: true + component_descriptor: ~ + steps: + verify: + image: 'golang:1.16.5' + + jobs: + head-update: + traits: + draft_release: ~ + pull-request: + traits: + pull-request: ~ + release: + traits: + version: + preprocess: 'finalize' + release: + nextversion: 'bump_minor' diff --git a/.ci/verify b/.ci/verify new file mode 100755 index 0000000..cd913e2 --- /dev/null +++ b/.ci/verify @@ -0,0 +1,15 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors +# +# SPDX-License-Identifier: Apache-2.0 + +set -o errexit +set -o nounset +set -o pipefail + +cd "$(dirname $0)/.." + +make install-requirements + +make verify diff --git a/Makefile b/Makefile index 8416f22..e5e24eb 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ EFFECTIVE_VERSION := $(VERSION)-$(shell git rev-par .PHONY: install-requirements install-requirements: @curl -sfL "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh" | sh -s -- -b $(go env GOPATH)/bin v1.32.2 - @GO111MODULE=off go get golang.org/x/tools/cmd/goimports + @GO111MODULE=off go get golang.org/x/tools/cmd/goimports .PHONY: revendor revendor: @GO111MODULE=on go mod vendor - @GO111MODULE=on go mod tidy + @GO111MODULE=on go mod tidy .PHONY: format format: diff --git a/VERSION b/VERSION index e7685f2..0a02a01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.0.0-dev \ No newline at end of file +v0.1.0-dev \ No newline at end of file