Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override tags on ci-release target #20

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ build: generate fmt vet ## Build manager binary.
run: build
go run . --oathkeeper-svc-address=${OATHKEEPER_SVC_ADDRESS} --oathkeeper-svc-port=${OATHKEEPER_SVC_PORT} --service-blocklist=${SERVICE_BLOCKLIST} --domain-allowlist=${DOMAIN_ALLOWLIST}

.PHONY: use-release-tag
use-release-tag:
TAG=${shell git describe --abbrev=0 --tags}

.PHONY: docker-build
docker-build: pull-licenses test ## Build docker image with the manager.
docker build -t $(APP_NAME):latest .
Expand Down Expand Up @@ -269,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: use-release-tag build docker-build-release 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