Skip to content

Commit

Permalink
Update release documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Feb 10, 2022
1 parent ee1da87 commit 3edfe23
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tmp/
deb/
release/
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VERSION ?= $(shell ls versions | grep -E -v '.(tmp|debug)' | sort -V | tail -n 1

TAG ?= $(VERSION)

.PHONY: dev-run dev-shell all-deb all-build all-push
.PHONY: dev-run dev-shell all-deb all-build all-push all-client

ifneq (,$(wildcard .env.mk))
include .env.mk
Expand Down Expand Up @@ -113,3 +113,25 @@ tmp-env:
cd "tmp/$(VERSION)" && ../../versions/$(VERSION)/clone.bash
cd "tmp/$(VERSION)" && ../../scripts/apply-patches.bash ../../versions/$(VERSION)/server/*.patch ../../versions/$(VERSION)/client*/*.patch
cd "tmp/$(VERSION)" && ../../scripts/strip-cargo.bash

# GitHub Releases

export GITHUB_USER ?= ayufan
export GITHUB_REPO ?= pve-backup-server-dockerfiles

github-upload-all:
@set -e; for file in release/$(TAG)/*.tgz release/$(TAG)/*/*.deb; do \
echo "Uploading $$file..."; \
github-release upload -t $(TAG) -R -n $$(basename $$file) -f $$file; \
done

github-pre-release: all-release all-push
go get github.com/github-release/github-release
git push
github-release info -t $(TAG) || github-release release -t $(TAG) --draft
make github-upload-all
github-release edit -t $(TAG) --pre-release

github-latest-release:
github-release edit -t $(TAG)
make all-latest
9 changes: 2 additions & 7 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
## My own release procedure

```bash
# The current version
make amd64-build amd64-push
DOCKER_CONTEXT=oracle-arm64 make arm64v8-build arm64v8-push
make all-manifest

# Create release package
make all-release
make github-pre-release

# Mark the current version as latest
make all-latest
make github-latest-release
```

0 comments on commit 3edfe23

Please sign in to comment.