Skip to content

Commit

Permalink
fsfreeze build/push
Browse files Browse the repository at this point in the history
  • Loading branch information
wwitzel3 committed Aug 27, 2018
1 parent 2b9d10c commit d9b25e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,22 @@ shell: build-dirs build-image

DOTFILE_IMAGE = $(subst :,_,$(subst /,_,$(IMAGE))-$(VERSION))

build-fsfreeze:
@docker build -t $(REGISTRY)/fsfreeze-pause:$(VERSION) -f Dockerfile-fsfreeze-pause.alpine _output
@docker images -q $(REGISTRY)/fsfreeze-pause:$(VERSION) > $@

push-fsfreeze:
@docker push $(REGISTRY)/fsfreeze-pause:$(VERSION)
ifeq ($(TAG_LATEST), true)
docker tag $(REGISTRY)/fsfreeze-pause:$(VERSION) $(IMAGE):latest
docker push $(REGISTRY)/fsfreeze-pause:latest
endif
@docker images -q $(REGISTRY)/fsfreeze-pause:$(VERSION) > $@

all-containers:
$(MAKE) container
$(MAKE) container BIN=ark-restic-restore-helper
$(MAKE) build-fsfreeze

container: verify test .container-$(DOTFILE_IMAGE) container-name
.container-$(DOTFILE_IMAGE): _output/bin/$(GOOS)/$(GOARCH)/$(BIN) $(DOCKERFILE)
Expand All @@ -145,6 +158,7 @@ container-name:
all-push:
$(MAKE) push
$(MAKE) push BIN=ark-restic-restore-helper
$(MAKE) push-fsfreeze


push: .push-$(DOTFILE_IMAGE) push-name
Expand Down

0 comments on commit d9b25e3

Please sign in to comment.