Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
add pipeline definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schrodi committed Jun 30, 2021
1 parent f59bbc7 commit 2045bd2
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
@@ -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'
15 changes: 15 additions & 0 deletions .ci/verify
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.0-dev
v0.1.0-dev

0 comments on commit 2045bd2

Please sign in to comment.