File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- FROM starefossen /github- pages
1+ FROM ghcr.io /github/ pages-gem:latest
22LABEL maintainer "bux"
33
4+ ENV BUNDLE_GEMFILE=/src/site/Gemfile
5+
46COPY entrypoint.sh /usr/local/bin/entrypoint
57
68ENTRYPOINT ["/usr/local/bin/entrypoint" ]
Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
2- gem 'github-pages'
3- gem 'tzinfo-data'
2+ gem 'github-pages' , group : :jekyll_plugins
43gem 'webrick'
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ services:
88 JEKYLLARGS : --incremental
99 ports : ['4000:4000']
1010 volumes :
11- - ' ./:/usr/ src/app '
11+ - ' ./:/src/site '
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ bundle install
34jekyll serve --force_polling --future --config _config_dev.yml -H 0.0.0.0 -P 4000 ${JEKYLLARGS}
Original file line number Diff line number Diff line change 1111import sys
1212import traceback
1313import subprocess as sp
14- from github import Github
14+ from github import Github , Auth
1515
1616
1717TRANSLATIONISSUE = 367
@@ -38,7 +38,8 @@ def main():
3838 print ("Obtaining token ..." )
3939 try :
4040 token = os .environ ["GH_TOKEN" ]
41- repo = Github (token ).get_repo (REPOPATH )
41+ auth = Auth .Token (token )
42+ repo = Github (auth = auth ).get_repo (REPOPATH )
4243 except :
4344 print ("Could not obtain token." )
4445 print (traceback .format_exc ())
You can’t perform that action at this time.
0 commit comments