This repository was archived by the owner on Jan 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to dump sprint status to special spreadsheet
- Loading branch information
Showing
7 changed files
with
388 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Location to install dependencies to | ||
LOCALBIN ?= $(shell pwd)/bin | ||
$(LOCALBIN): | ||
mkdir -p $(LOCALBIN) | ||
|
||
ORAS ?= $(LOCALBIN)/oras | ||
|
||
ORAS_VERSION ?= v1.0.0 | ||
|
||
.PHONY: oras | ||
oras: $(ORAS) ## Download oras locally if necessary. | ||
$(ORAS): $(LOCALBIN) | ||
test -s $(LOCALBIN)/oras || GOBIN=$(LOCALBIN) go install oras.land/oras/cmd/oras@$(ORAS_VERSION) | ||
|
||
.PHONY: build-amd64 | ||
build-mdbook-gh-project-amd64: ## Build binary for amd64. | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/mdbook-gh-project cmd/mdbook-gh-project/main.go | ||
|
||
BIN_REGISTRY ?= ghcr.io | ||
BIN_MDBOOK_GH_PROJECT_URL ?= ghcr.io/githedgehog/mdbook-gh-project | ||
|
||
.PHONY: bin-registry-login | ||
bin-registry-login: oras | ||
$(ORAS) login -u "$(USERNAME)" -p "$(PASSWORD)" $(BIN_REGISTRY) | ||
|
||
.PHONY: bin-mdbook-gh-project-push | ||
bin-mdbook-gh-project-push: build-mdbook-gh-project-amd64 oras | ||
cd bin && $(ORAS) push $(BIN_MDBOOK_GH_PROJECT_URL):latest mdbook-gh-project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.