-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: better environment initialization
Migrate env initialization from Dockerfile to standalone script, it can improve performance and manipuility.
- Loading branch information
1 parent
25115dd
commit 608f667
Showing
3 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,6 @@ LABEL repository="https://github.com/jeffreytse/jekyll-deploy-action" | |
LABEL homepage="https://github.com/jeffreytse/jekyll-deploy-action" | ||
LABEL maintainer="Jeffrey Tse <[email protected]>" | ||
|
||
# Update packages database | ||
RUN pacman -Syu --noconfirm | ||
|
||
# Installing git package | ||
RUN pacman -S --noconfirm git | ||
|
||
# Installing ruby libraries | ||
RUN pacman -S --noconfirm ruby2.7 ruby-bundler | ||
|
||
# Setting default ruby version | ||
RUN cp /usr/bin/ruby-2.7 /usr/bin/ruby | ||
|
||
# debug | ||
RUN ruby -v && bundle version | ||
|
||
COPY LICENSE.txt README.md / | ||
|
||
COPY script /script | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Update packages database | ||
pacman -Syu --noconfirm | ||
|
||
# Installing git package | ||
pacman -S --noconfirm git | ||
|
||
# Installing ruby libraries | ||
pacman -S --noconfirm ruby2.7 ruby-bundler | ||
|
||
# Setting default ruby version | ||
cp /usr/bin/ruby-2.7 /usr/bin/ruby | ||
|
||
# debug | ||
ruby -v && bundle version |