Skip to content

Commit

Permalink
Revert "Updated release process to use goreleaser (jenkins-x#4130)" (j…
Browse files Browse the repository at this point in the history
…enkins-x#4335)

This reverts commit ea7fdfc.
  • Loading branch information
cagiti authored and jenkins-x-bot committed Jun 19, 2019
1 parent fc95231 commit 19da9a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 37 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ debug
#Various temporary created while building/running jx.
/build/
release/
dist/
scanning/
.updatebot-repos/
.terraform/
Expand Down
28 changes: 0 additions & 28 deletions .goreleaser.yml

This file was deleted.

17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,10 @@ release: clean build test-slow-integration linux darwin win arm ## Release the b
cd ./build/arm; tar -zcvf ../../release/jx-linux-arm.tar.gz jx; \
fi

go get -u github.com/goreleaser/goreleaser
GITHUB_TOKEN=$(GITHUB_ACCESS_TOKEN) goreleaser release --config=.goreleaser.yml --rm-dist
# Don't create a changelog for the distro
go get -u github.com/progrium/gh-release
gh-release checksums sha256
GITHUB_ACCESS_TOKEN=$(GITHUB_ACCESS_TOKEN) gh-release create $(RELEASE_ORG_REPO) $(VERSION) master $(VERSION)

@if [[ -z "${DISTRO}" ]]; then \
./build/linux/jx step changelog --verbose --header-file docs/dev/changelog-header.md --version $(VERSION) --rev $(PULL_BASE_SHA); \
fi
Expand Down Expand Up @@ -314,11 +315,11 @@ codecov-validate:
fmt: ## Format the code
$(eval FORMATTED = $(shell $(GO) fmt ./...))
@if [ "$(FORMATTED)" == "" ]; \
then \
echo "All Go files properly formatted"; \
else \
echo "Fixed formatting for: $(FORMATTED)"; \
fi
then \
echo "All Go files properly formatted"; \
else \
echo "Fixed formatting for: $(FORMATTED)"; \
fi

.PHONY: lint
lint: ## Lint the code
Expand Down

0 comments on commit 19da9a4

Please sign in to comment.