Skip to content

Commit

Permalink
fix(build): clean up after container builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 3, 2019
1 parent 79b4c9a commit c9a42f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions run.mk
Expand Up @@ -38,11 +38,12 @@ local-alpine:
local-stretch:
docker run --rm -v "$(shell pwd):/salty-dog" -w /salty-dog node:11-alpine sh -c "apk add build-base git && make ci"

local-chown-leaks: ## clean up root-owned files the containers may leak
sudo chown -R ${USER}:${USER} $(ROOT_PATH)

full: ## ultra thorough build (looong)
$(MAKE) clean-target ci
$(MAKE) clean-target local-alpine
$(MAKE) clean-target local-stretch
# clean up root-owned files the containers may leak
sudo chown -R ${USER}:${USER} $(ROOT_PATH)
$(MAKE) clean-target local-alpine local-chown-leaks
$(MAKE) clean-target local-stretch local-chown-leaks
$(MAKE) clean-target
@echo "Full build (CI, alpine, stretch) succeeded!
@echo "Full build (CI, alpine, stretch) succeeded!"
2 changes: 1 addition & 1 deletion scripts/ci-project-path.sh
@@ -1,4 +1,4 @@
#! /bin/bash
#! /bin/sh

PROJECT="${ROOT_PATH}"
PARENT="$(dirname "${PROJECT}")"
Expand Down

0 comments on commit c9a42f3

Please sign in to comment.