forked from flynn/flynn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTuprules.tup
More file actions
16 lines (14 loc) · 1.04 KB
/
Tuprules.tup
File metadata and controls
16 lines (14 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export GOPATH
export GIT_COMMIT
export GIT_BRANCH
export GIT_TAG
export GIT_DIRTY
VPKG = github.com/flynn/flynn/pkg/version
ROOT = $(TUP_CWD)
!go = |> ^c go build %o^ go build -o %o -ldflags="-X $(VPKG).commit $GIT_COMMIT -X $(VPKG).branch $GIT_BRANCH -X $(VPKG).tag $GIT_TAG -X $(VPKG).dirty $GIT_DIRTY" |>
!docker = |> ^ docker build %d^ docker build -t flynn/%d . | tee %o |> $(ROOT)/log/docker-%d.log <docker>
!docker-layer0 = |> ^ docker build %d^ docker build -t flynn/%d . | tee %o |> $(ROOT)/log/docker-layer0/%d.log $(ROOT)/<layer0>
!docker-layer1 = |> ^ docker build %d^ docker build -t flynn/%d . | tee %o |> $(ROOT)/log/docker-layer1/%d.log $(ROOT)/<layer1>
!docker-cedarish = |> ^ docker build %d^ cat $(ROOT)/log/docker-cedarish.log > /dev/null && docker build -t flynn/%d . | tee %o |> $(ROOT)/log/docker-layer1/%d.log $(ROOT)/<layer1>
!cp = |> cp %f %o |>
!manifest = | $(ROOT)/util/release/flynn-release |> $(ROOT)/util/release/flynn-release manifest --output=%o --image-url-prefix=@(IMAGE_URL_PREFIX) manifest_template.json |> bin/manifest.json