fix13
This commit is contained in:
parent
8d7c01322b
commit
6cd7885dda
|
@ -45,12 +45,26 @@ build(){
|
||||||
# make setup
|
# make setup
|
||||||
# make production-build
|
# make production-build
|
||||||
|
|
||||||
log_info "使用本地开发镜像镜像构建"
|
cat > c <<EOF
|
||||||
docker run -itd --rm --name tmp -v `pwd`:/app --entrypoint="/bin/bash" spiffe.io:latest -c \
|
#!/usr/bin/env bash -x
|
||||||
./hugo \
|
|
||||||
|
# Installs npm dependencies
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# Pulls in external content
|
||||||
|
pipenv run python pull_external.py
|
||||||
|
|
||||||
|
./hugo \
|
||||||
--cleanDestinationDir \
|
--cleanDestinationDir \
|
||||||
--minify \
|
--minify \
|
||||||
--baseURL https://spiffe.website.cncfstack.com
|
--baseURL https://spiffe.website.cncfstack.com
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x cncfstack-build.sh
|
||||||
|
|
||||||
|
log_info "使用本地开发镜像镜像构建"
|
||||||
|
|
||||||
|
docker run -itd --name tmp -v `pwd`:/app --entrypoint="/bin/bash" spiffe.io:latest -c "pipenv run bash cncfstack-build.sh"
|
||||||
|
|
||||||
docker inspect tmp
|
docker inspect tmp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue