IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts 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!
Bladeren bron

Final touches for Gitea.

master
Stanislaw Adaszewski 4 jaren geleden
bovenliggende
commit
4924a99ef6
5 gewijzigde bestanden met toevoegingen van 16 en 3 verwijderingen
  1. +7
    -1
      example/gitea-custom/Fockerfile
  2. +1
    -1
      example/gitea-custom/files/body_inner_pre.tmpl
  3. +3
    -0
      example/gitea-custom/files/custom.css
  4. +1
    -0
      example/gitea-custom/files/header.tmpl
  5. +4
    -1
      example/gitea-logo/Fockerfile

+ 7
- 1
example/gitea-custom/Fockerfile Bestand weergeven

@@ -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 '/<link rel="mask-icon"/ d' /usr/local/share/gitea/templates/base/head.tmpl
sed -i -e '/<link rel="mask-icon"/ d' $GITEA_TMPL_BASE/head.tmpl && \
sed -i -e 's/<a href="{{AppSubUrl}}\/">$/<a href="https:\/\/adared.ch\/">/' $GITEA_TMPL_BASE/head_navbar.tmpl

+ 1
- 1
example/gitea-custom/files/body_inner_pre.tmpl Bestand weergeven

@@ -2,7 +2,7 @@
<div class="ui positive message" style="margin: 1em;">
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
<a href="https://adared.ch" target="_blank">ADARED</a>
projects. Thank you for your understanding!


+ 3
- 0
example/gitea-custom/files/custom.css Bestand weergeven

@@ -0,0 +1,3 @@
.following.bar .item.brand .ui.mini.image {
width: 100px;
}

+ 1
- 0
example/gitea-custom/files/header.tmpl Bestand weergeven

@@ -0,0 +1 @@
<link rel="stylesheet" type="text/css" href="{{StaticUrlPrefix}}/css/custom.css" />

+ 4
- 1
example/gitea-logo/Fockerfile Bestand weergeven

@@ -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 && \


Laden…
Annuleren
Opslaan