Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Add zip-it-and-ship-it
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Apr 4, 2019
1 parent cb6c201 commit d9b106f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
27 changes: 23 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -308,18 +308,37 @@ USER root

################################################################################
#
# Hugo
# Binrc
#
################################################################################

ENV BINRC_VERSION 0.2.6
ENV BINRC_VERSION 0.2.9

RUN mkdir /opt/binrc && cd /opt/binrc && \
curl -sL https://github.com/netlify/binrc/releases/download/v${BINRC_VERSION}/binrc_${BINRC_VERSION}_Linux-64bit.tar.gz | tar zxvf - && \
ln -s /opt/binrc/binrc_${BINRC_VERSION}_linux_amd64/binrc_${BINRC_VERSION}_linux_amd64 /usr/local/bin/binrc

RUN binrc install gohugoio/hugo 0.54.0 -c /opt/buildhome/.binrc | xargs -n 1 -I{} ln -s {} /usr/local/bin/hugo_0.54.0 && \
ln -s /usr/local/bin/hugo_0.54.0 /usr/local/bin/hugo
################################################################################
#
# Hugo
#
################################################################################

ENV HUGO_VERSION 0.54.0

RUN binrc install gohugoio/hugo ${HUGO_VERSION} -c /opt/buildhome/.binrc | xargs -n 1 -I{} ln -s {} /usr/local/bin/hugo_${HUGO_VERSION} && \
ln -s /usr/local/bin/hugo_${HUGO_VERSION} /usr/local/bin/hugo

################################################################################
#
# Zip-it-and-ship-it
#
################################################################################

ENV ZIP_IT_AND_SHIP_IT_VERSION 0.2.4

RUN binrc install netlify/zip-it-and-ship-it ${ZIP_IT_AND_SHIP_IT_VERSION} -c /opt/buildhome/.binrc | xargs -n 1 -I{} ln -s {} /usr/local/bin/zip-it-and-ship-it_${ZIP_IT_AND_SHIP_IT_VERSION} && \
ln -s /usr/local/bin/zip-it-and-ship-it_${ZIP_IT_AND_SHIP_IT_VERSION} /usr/local/bin/zip-it-and-ship-it

################################################################################
#
Expand Down
4 changes: 1 addition & 3 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ install_dependencies() {
# Take things installed during the build and cache them
#
cache_artifacts() {
echo "Caching artifacts"
cache_cwd_directory ".bundle" "ruby gems"
cache_cwd_directory "bower_components" "bower components"
cache_cwd_directory "node_modules" "node modules"
Expand Down Expand Up @@ -647,9 +648,6 @@ report_lingering_procs() {
}

after_build_steps() {
echo "Caching artifacts"
cache_artifacts

# Find lingering processes after the build finished and report it to the user
report_lingering_procs
}

0 comments on commit d9b106f

Please sign in to comment.