This commit is contained in:
parent
cbd9a2148b
commit
239ff5b8f9
1 changed files with 33 additions and 44 deletions
|
|
@ -1,68 +1,36 @@
|
|||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
path:
|
||||
include: ['Website/**']
|
||||
on_empty: false
|
||||
# path:
|
||||
# include: ['Website/**']
|
||||
# on_empty: false
|
||||
|
||||
steps:
|
||||
- name: alpine_debug
|
||||
- name: build_by_hugo
|
||||
image: alpine:3.21
|
||||
commands:
|
||||
- date -I'seconds'
|
||||
- cat /etc/alpine-release
|
||||
- which ash
|
||||
- ls -la $(which ash)
|
||||
- apk add --no-cache hugo
|
||||
- hugo version
|
||||
|
||||
### bei https://hub.docker.com/_/alpine ist 3.21 "latest"
|
||||
# hier in Woodpecker NICHT!!
|
||||
|
||||
- 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
|
||||
- cat Website/hugo.yaml
|
||||
- sed -i 's+https://oer.community/+https://twdy.oer.community/+g' Website/hugo.yaml
|
||||
- head Website/hugo.yaml
|
||||
- mkdir Website/PROD
|
||||
#- apk add --no-cache hugo
|
||||
- hugo version
|
||||
- hugo -s Website -d PROD --logLevel debug
|
||||
- ls -la Website/PROD/index.html
|
||||
- head Website/PROD/index.html
|
||||
- echo $?
|
||||
|
||||
#- grep --version
|
||||
#- grep -E . Website/PROD/index.html
|
||||
#- grep -E ".*" Website/PROD/index.html
|
||||
|
||||
##check auf Alpine Basis!!!!
|
||||
|
||||
- echo $?
|
||||
- which grep
|
||||
# - 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/
|
||||
- ls -l $(which grep)
|
||||
- grep -e 'schon mal selbst Materialien erstellt oder arbeitest in einer Community' Website/PROD/index.html
|
||||
- echo $?
|
||||
|
||||
# - 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
|
||||
image: alpine
|
||||
|
|
@ -95,3 +63,24 @@ steps:
|
|||
image: alpine
|
||||
commands:
|
||||
- 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