瀏覽代碼

Ensure we're using the latest node image

Jamie Curnow 5 年之前
父節點
當前提交
fff31b0f34
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scripts/frontend-build

+ 1 - 0
scripts/frontend-build

@@ -7,6 +7,7 @@ DOCKER_IMAGE=jc21/alpine-nginx-full:node
 
 # Ensure docker exists
 if hash docker 2>/dev/null; then
+	docker pull "${DOCKER_IMAGE}"
 	cd "${DIR}/.."
 	echo -e "${BLUE}❯ ${CYAN}Building Frontend ...${RESET}"
 	docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -w /app/frontend "$DOCKER_IMAGE" sh -c "yarn install && yarn build && yarn build && chown -R $(id -u):$(id -g) /app/frontend"