Skip to content

Commit 5808979

Browse files
author
Jeff McCormick
committed
add makefile target for release
1 parent 3772525 commit 5808979

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
RELTMPDIR=/tmp/release.$(CO_VERSION)
3+
RELFILE=/tmp/postgres-operator.$(CO_VERSION).tar.gz
4+
25
pgo:
36
cd client && go build -o $(GOBIN)/pgo pgo.go
47
clean:
@@ -13,6 +16,18 @@ lsimage:
1316
docker tag lspvc crunchydata/lspvc:$(CO_BASEOS)-$(CO_VERSION)
1417
all:
1518
make operatorimage
19+
make lsimage
20+
make pgo
21+
push:
22+
docker push crunchydata/lspvc:$(CO_IMAGE_TAG)
23+
docker push crunchydata/postgres-operator:$(CO_IMAGE_TAG)
24+
release:
25+
rm -rf $(RELTMPDIR) $(RELFILE)
26+
mkdir $(RELTMPDIR)
27+
cp $(GOBIN)/pgo $(RELTMPDIR)
28+
cp $(COROOT)/examples/.pgo.yaml $(RELTMPDIR)
29+
cp $(COROOT)/examples/.pgo.lspvc-template.json $(RELTMPDIR)
30+
tar czvf $(RELFILE) -C $(RELTMPDIR) .
1631
default:
1732
all
1833

docs/build.asciidoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export GOPATH=$HOME/odev
4040
export GOBIN=$GOPATH/bin
4141
export PATH=$PATH:$GOBIN
4242
export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
43+
export CO_BASEOS=centos7
44+
export CO_VERSION=1.0.0
45+
export CO_IMAGE_TAG=$CO_BASEOS-$CO_VERSION
4346
....
4447

4548
Then execute these commands to build the project structure:
@@ -114,8 +117,8 @@ ThirdPartyResources.
114117
The *pgo* client requires two configuration files be copied
115118
to your $HOME as follows:
116119
....
117-
cp $COROOT/examples/sample.pgo.yaml $HOME/.pgo.yaml
118-
cp $COROOT/examples/lspvc-template.yaml $HOME/.pgo.lspvc-template.json
120+
cp $COROOT/examples/.pgo.yaml $HOME
121+
cp $COROOT/examples/.pgo.lspvc-template.yaml $HOME
119122
vi $HOME/.pgo.yaml
120123
....
121124

0 commit comments

Comments
 (0)