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

Commit

Permalink
Add build director
Browse files Browse the repository at this point in the history
  • Loading branch information
faceleg committed Nov 20, 2023
1 parent 05ec5ee commit 90dbfb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ RUN apt-get install -y libvips && apt-get clean
RUN apt-get install -y default-jre && \
apt-get clean;

RUN mkdir build
22 changes: 11 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ echo '👍 BUNDLE INSTALLED—BUILDING THE SITE'
bundle exec jekyll build
echo '👍 THE SITE IS BUILT—PUSHING IT BACK TO GITHUB-PAGES'
cd build
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \
remote_branch="gh-pages" && \
git init && \
git config user.name "${GITHUB_ACTOR}" && \
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
git add . && \
echo -n 'Files to Commit:' && ls -l | wc -l && \
git commit -m'action build' > /dev/null 2>&1 && \
git push --force $remote_repo master:$remote_branch > /dev/null 2>&1 && \
rm -fr .git && \
cd ../
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" &&
remote_branch="gh-pages" &&
git init &&
git config user.name "${GITHUB_ACTOR}" &&
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" &&
git add . &&
echo -n 'Files to Commit:' && ls -l | wc -l &&
git commit -m 'action build' >/dev/null 2>&1 &&
git push --force $remote_repo master:$remote_branch >/dev/null 2>&1 &&
rm -fr .git &&
cd ../
echo '👍 GREAT SUCCESS!'

0 comments on commit 90dbfb6

Please sign in to comment.