forked from jhunt/shout-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 1.11 KB
/
Makefile
File metadata and controls
35 lines (28 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SHOUT_REPO := ../shout
SBCL_VERSION := 2.6.2
SBCL_ARCH := x86-64
SBCL_OS := linux
SBCL_TARBALL := sbcl-$(SBCL_VERSION)-$(SBCL_ARCH)-$(SBCL_OS)-binary.tar.bz2
SBCL_URL := https://github.com/roswell/sbcl_bin/releases/download/$(SBCL_VERSION)/$(SBCL_TARBALL)
default: blobs
# Download Roswell SBCL binary and add as blob
sbcl-blob:
@echo "Downloading SBCL $(SBCL_VERSION) for $(SBCL_ARCH)-$(SBCL_OS)..."
curl -L -o /tmp/$(SBCL_TARBALL) $(SBCL_URL)
bosh add-blob /tmp/$(SBCL_TARBALL) sbcl/$(SBCL_TARBALL)
rm /tmp/$(SBCL_TARBALL)
# Create shout source tarball from git archive and add as blob
shout-blob:
@echo "Creating shout source tarball from $(SHOUT_REPO)..."
cd $(SHOUT_REPO) && git archive --format=tar.gz --prefix=shout/ -o /tmp/shout-src.tar.gz HEAD
bosh add-blob /tmp/shout-src.tar.gz shout/shout-src.tar.gz
rm /tmp/shout-src.tar.gz
# Create/update both blobs
blobs: sbcl-blob shout-blob
# Upload blobs to the remote blobstore (S3)
upload-blobs:
bosh upload-blobs
# Create a BOSH dev release
release:
bosh create-release --force
.PHONY: default sbcl-blob shout-blob blobs upload-blobs release