diff --git a/example/gitea-custom/Fockerfile b/example/gitea-custom/Fockerfile index 2485760..f4f52d4 100644 --- a/example/gitea-custom/Fockerfile +++ b/example/gitea-custom/Fockerfile @@ -4,10 +4,15 @@ steps: - copy: - [ files/body_inner_pre.tmpl, /usr/local/share/gitea/templates/custom/body_inner_pre.tmpl ] + - [ files/header.tmpl, + /usr/local/share/gitea/templates/custom/header.tmpl ] + - [ files/custom.css, + /usr/local/share/gitea/public/css/custom.css ] - [ files/secrets.ini, /tmp/secrets.ini ] - run: | export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \ + export GITEA_TMPL_BASE=/usr/local/share/gitea/templates/base && \ export SECRET_CONF=/tmp/secrets.ini && \ crudini --set --inplace $GITEA_CONF server DISABLE_SSH true && \ crudini --set --inplace $GITEA_CONF service DEFAULT_ALLOW_CREATE_ORGANIZATION false && \ @@ -20,4 +25,5 @@ steps: crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `crudini --get $SECRET_CONF security INTERNAL_TOKEN` && \ crudini --set --inplace $GITEA_CONF security SECRET_KEY `crudini --get $SECRET_CONF security SECRET_KEY` && \ rm -v $SECRET_CONF && \ - sed -i -e '/$//' $GITEA_TMPL_BASE/head_navbar.tmpl diff --git a/example/gitea-custom/files/body_inner_pre.tmpl b/example/gitea-custom/files/body_inner_pre.tmpl index ecb9c4f..2484bc3 100644 --- a/example/gitea-custom/files/body_inner_pre.tmpl +++ b/example/gitea-custom/files/body_inner_pre.tmpl @@ -2,7 +2,7 @@
IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts - are only meant to report issues and/or generate pull requests. + are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding! diff --git a/example/gitea-custom/files/custom.css b/example/gitea-custom/files/custom.css new file mode 100644 index 0000000..f8bbd16 --- /dev/null +++ b/example/gitea-custom/files/custom.css @@ -0,0 +1,3 @@ +.following.bar .item.brand .ui.mini.image { + width: 100px; +} diff --git a/example/gitea-custom/files/header.tmpl b/example/gitea-custom/files/header.tmpl new file mode 100644 index 0000000..5e4a30a --- /dev/null +++ b/example/gitea-custom/files/header.tmpl @@ -0,0 +1 @@ + diff --git a/example/gitea-logo/Fockerfile b/example/gitea-logo/Fockerfile index c2bbc83..8e73a9a 100644 --- a/example/gitea-logo/Fockerfile +++ b/example/gitea-logo/Fockerfile @@ -7,9 +7,12 @@ steps: - run: | ASSUME_ALWAYS_YES=yes pkg install py37-pillow && \ export LOGO_URL=https://adared.ch/wp-content/uploads/2017/04/adared_logo_20170403-2.png && \ + export FAVICON_URL=https://adared.ch/wp-content/uploads/2017/04/cropped-adared_favicon-192x192.png && \ + export GITEA_IMG=/usr/local/share/gitea/public/img && \ fetch $LOGO_URL -o logo.png && \ + fetch $FAVICON_URL -o $GITEA_IMG/favicon.png && \ python3.7 /tmp/resize.py logo.png && \ - mv -v gitea-*.png /usr/local/share/gitea/public/img/ && \ + mv -v gitea-*.png $GITEA_IMG/ && \ rm -v logo.png && \ rm -v /tmp/resize.py && \ ASSUME_ALWAYS_YES=yes pkg remove py37-pillow && \