Skip to content

Commit 0352bcc

Browse files
authored
Docs - Use new base image and fix DeprecationWarning (#11264)
* Docs - Fix build with new base image * Fix DeprecationWarning in deploy.py * Remove uneccessary tzinfo-data
1 parent 65736da commit 0352bcc

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

docs/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM starefossen/github-pages
1+
FROM ghcr.io/github/pages-gem:latest
22
LABEL maintainer "bux"
33

4+
ENV BUNDLE_GEMFILE=/src/site/Gemfile
5+
46
COPY entrypoint.sh /usr/local/bin/entrypoint
57

68
ENTRYPOINT ["/usr/local/bin/entrypoint"]

docs/Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
source 'https://rubygems.org'
2-
gem 'github-pages'
3-
gem 'tzinfo-data'
2+
gem 'github-pages', group: :jekyll_plugins
43
gem 'webrick'

docs/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
JEKYLLARGS: --incremental
99
ports: ['4000:4000']
1010
volumes:
11-
- './:/usr/src/app'
11+
- './:/src/site'

docs/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/sh
22

3+
bundle install
34
jekyll serve --force_polling --future --config _config_dev.yml -H 0.0.0.0 -P 4000 ${JEKYLLARGS}

tools/deploy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sys
1212
import traceback
1313
import subprocess as sp
14-
from github import Github
14+
from github import Github, Auth
1515

1616

1717
TRANSLATIONISSUE = 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())

0 commit comments

Comments
 (0)