This commit is contained in:
parent
cbd9a2148b
commit
239ff5b8f9
1 changed files with 33 additions and 44 deletions
|
|
@ -1,68 +1,36 @@
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
path:
|
# path:
|
||||||
include: ['Website/**']
|
# include: ['Website/**']
|
||||||
on_empty: false
|
# on_empty: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: alpine_debug
|
- name: build_by_hugo
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
commands:
|
commands:
|
||||||
- date -I'seconds'
|
- date -I'seconds'
|
||||||
- cat /etc/alpine-release
|
- cat /etc/alpine-release
|
||||||
- which ash
|
|
||||||
- ls -la $(which ash)
|
|
||||||
- apk add --no-cache hugo
|
- apk add --no-cache hugo
|
||||||
- hugo version
|
- hugo version
|
||||||
|
- cat Website/hugo.yaml
|
||||||
### bei https://hub.docker.com/_/alpine ist 3.21 "latest"
|
- sed -i 's+https://oer.community/+https://twdy.oer.community/+g' Website/hugo.yaml
|
||||||
# hier in Woodpecker NICHT!!
|
- head Website/hugo.yaml
|
||||||
|
|
||||||
- name: hugo-alpine
|
|
||||||
image: alpine:latest # latest ist nicht die neueste, sondern die neueste "stable" !!!
|
|
||||||
commands:
|
|
||||||
- echo "nach Docker Hub müsste >latest< Version 3.21.3 sein!"
|
|
||||||
- cat /etc/alpine-release
|
|
||||||
- apk add --no-cache hugo
|
|
||||||
- hugo version
|
|
||||||
|
|
||||||
- name: build_by_hugo
|
|
||||||
#image: alpine -- Alpine hat nur Hugo in Version hugo v0.125.4+extended linux/amd64 BuildDate=unknown // Papermod braucht >= 0.125.7
|
|
||||||
image: hugomods/hugo
|
|
||||||
commands:
|
|
||||||
- cat /etc/alpine-release
|
|
||||||
- mkdir Website/PROD
|
- mkdir Website/PROD
|
||||||
#- apk add --no-cache hugo
|
|
||||||
- hugo version
|
|
||||||
- hugo -s Website -d PROD --logLevel debug
|
- hugo -s Website -d PROD --logLevel debug
|
||||||
- ls -la Website/PROD/index.html
|
- ls -la Website/PROD/index.html
|
||||||
- head Website/PROD/index.html
|
- head Website/PROD/index.html
|
||||||
|
- echo $?
|
||||||
|
|
||||||
#- grep --version
|
#- grep --version
|
||||||
#- grep -E . Website/PROD/index.html
|
#- grep -E . Website/PROD/index.html
|
||||||
#- grep -E ".*" Website/PROD/index.html
|
#- grep -E ".*" Website/PROD/index.html
|
||||||
|
|
||||||
##check auf Alpine Basis!!!!
|
|
||||||
|
|
||||||
- echo $?
|
|
||||||
- which grep
|
- which grep
|
||||||
# - cp Website/PROD/index.html Website/index.html
|
- ls -l $(which grep)
|
||||||
# - cp -r Website/PROD/blog Website/PROD/aprilscherz Website/
|
- grep -e 'schon mal selbst Materialien erstellt oder arbeitest in einer Community' Website/PROD/index.html
|
||||||
# - rm -rf Website/PROD/*
|
- echo $?
|
||||||
# - cp Website/index.html Website/PROD/index.html
|
|
||||||
# - cp -r Website/blog Website/aprilscherz Website/PROD/
|
|
||||||
|
|
||||||
# - grep -E "zielt FOERBICO auf die Vernetzung" Website/PROD/index.html # enthält index.html auch den Inhalt der Startseite?
|
|
||||||
# - grep -E ".*schon.mal.selbst.Materialien.erstellt.oder.arbeitest.in.einer.Community.*" Website/PROD/index.html
|
|
||||||
|
|
||||||
|
|
||||||
# - grep -E "schon" Website/PROD/index.html
|
|
||||||
# - echo $?
|
|
||||||
# #- grep -E "schon mal selbst Materialien erstellt oder arbeitest in einer Community" Website/PROD/index.html | head -n 1
|
|
||||||
# - echo $?
|
|
||||||
# - grep -E "localhost" Website/PROD/index.html # hat sich beim build ein Fehler eingeschlichen?
|
|
||||||
# - echo $?
|
|
||||||
# - grep -E 'href.+favicon.ico' Website/PROD/index.html | cut -d= -f3 # baseURL ausgeben
|
|
||||||
|
|
||||||
- name: copy_to_server
|
- name: copy_to_server
|
||||||
image: alpine
|
image: alpine
|
||||||
|
|
@ -95,3 +63,24 @@ steps:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- date -I'seconds'
|
- date -I'seconds'
|
||||||
|
|
||||||
|
|
||||||
|
##check auf Alpine Basis!!!!
|
||||||
|
|
||||||
|
# - cp Website/PROD/index.html Website/index.html
|
||||||
|
# - cp -r Website/PROD/blog Website/PROD/aprilscherz Website/
|
||||||
|
# - rm -rf Website/PROD/*
|
||||||
|
# - cp Website/index.html Website/PROD/index.html
|
||||||
|
# - cp -r Website/blog Website/aprilscherz Website/PROD/
|
||||||
|
|
||||||
|
# - grep -E "zielt FOERBICO auf die Vernetzung" Website/PROD/index.html # enthält index.html auch den Inhalt der Startseite?
|
||||||
|
# - grep -E ".*schon.mal.selbst.Materialien.erstellt.oder.arbeitest.in.einer.Community.*" Website/PROD/index.html
|
||||||
|
|
||||||
|
|
||||||
|
# - grep -E "schon" Website/PROD/index.html
|
||||||
|
# - echo $?
|
||||||
|
# #- grep -E "schon mal selbst Materialien erstellt oder arbeitest in einer Community" Website/PROD/index.html | head -n 1
|
||||||
|
# - echo $?
|
||||||
|
# - grep -E "localhost" Website/PROD/index.html # hat sich beim build ein Fehler eingeschlichen?
|
||||||
|
# - echo $?
|
||||||
|
# - grep -E 'href.+favicon.ico' Website/PROD/index.html | cut -d= -f3 # baseURL ausgeben
|
||||||
Loading…
Add table
Add a link
Reference in a new issue