Skip to content

Commit

Permalink
Automated releases (#22)
Browse files Browse the repository at this point in the history
* Dummy change (#13)

* Release 0.1 (#14)

* Add goreleaser config

* Add goreleaser config

* Use only goreleaser

* Fix to release (#17)

* Release script (#15)

* Dummy change (#13)

* Add goreleaser config

* Add goreleaser config

* Use only goreleaser

* Update release script

* Remove manifests generation from release build

* Tidy script

* Fix (#16)

* Fix makefile (#18)

* Use git tag for docker image (#19)

* Override tags on ci-release target (#20)

* CR fixes

* Add image links to release
  • Loading branch information
werdes72 authored Sep 9, 2022
1 parent a0110b9 commit 92f1113
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ release:
owner: kyma-project
name: api-gateway
prerelease: auto
header: |
Images published in {{ .Tag }} release:
- eu.gcr.io/kyma-project/api-gateway-controller:{{ .Tag }}
- eu.gcr.io/kyma-project/api-gateway-webhook-certificates:{{ .Tag }}
builds:
- env:
- CGO_ENABLED=0
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ vet: ## Run go vet against code.
go vet ./...

.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
test: manifests generate fmt vet envtest ## Generate manifests and run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

.PHONY: test-for-release
Expand Down Expand Up @@ -265,7 +265,9 @@ ci-pr: build test
ci-main: build docker-build docker-push docker-build-certificates docker-push-certificates

.PHONY: ci-release
ci-release: build docker-build docker-push docker-build-certificates docker-push-certificates archive release
ci-release: TAG=${shell git describe --abbrev=0 --tags}
ci-release: CERTIFICATES_TAG=$(TAG)
ci-release: build docker-build-release docker-push docker-build-certificates docker-push-certificates archive release

.PHONY: clean
clean:
Expand Down

0 comments on commit 92f1113

Please sign in to comment.