Skip to content

Commit

Permalink
Merge pull request #32 from kingdonb/release-0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
Kingdon Barrett authored Jun 27, 2023
2 parents f847f89 + d67561b commit cd9f5d6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.PHONY: version-set prerel release git-status
.PHONY: foreman lib clean test all docker
.PHONY: base gems gem-cache clean-cache gems-base

Expand All @@ -8,9 +9,34 @@ GEMS_TAG:=gems
GEM_CACHE_TAG:=gem-cache
PLATFORM:=linux/arm64
OUTIMAGE:=kingdonb/opernator
VERSION:=$(shell rake app:version | awk '{ print $$3 }')

all: clean lib test

release: git-status
git tag $(VERSION)
git push origin $(VERSION)

prerel: set-version

# https://kgolding.co.uk/snippets/makefile-check-git-status/
git-status:
@status=$$(git status --porcelain); \
if [ ! -z "$${status}" ]; \
then \
echo "Error - working directory is dirty. Commit those changes!"; \
exit 1; \
fi

set-version:
rake app:render
@next="$$(rake app:version | awk '{ print $$3 }')" && \
current="$(VERSION)" && \
echo "Replacing current version strings: $$current" && \
rake app:version && \
/usr/bin/sed -i '' "s/newTag: $$current/newTag: $$next/g" deploy/overlays/production/kustomization.yaml && \
echo "Version $$next set in code and manifests"

docker:
# docker pull --platform $(PLATFORM) $(IMAGE):$(BASE_TAG)
# docker pull --platform $(PLATFORM) $(IMAGE):$(GEMS_TAG)
Expand Down
6 changes: 3 additions & 3 deletions config/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# instead edit the file application/lib/templates/version.yml.erb

major: 0
minor: 0
patch: 3
minor: 1
patch: 0
# meta: rc.1
# milestone: 4
build: 219
build: 227

committer: Kingdon Barrett
build_date: 2023-06-27
Expand Down
2 changes: 1 addition & 1 deletion deploy/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ resources:
images:
- name: ghcr.io/kingdonb/stats-tracker-ghcr
newName: ghcr.io/kingdonb/stats-tracker-ghcr
newTag: 0.0.3
newTag: 0.1.0
4 changes: 2 additions & 2 deletions lib/templates/version.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# instead edit the file application/lib/templates/version.yml.erb

major: 0
minor: 0
patch: 3
minor: 1
patch: 0
# meta: rc.1
# milestone: 4
build: <%= `git rev-list HEAD|wc -l`.strip %>
Expand Down

0 comments on commit cd9f5d6

Please sign in to comment.