theme "update" und erster Woodpecker Lauf
All checks were successful
ci/woodpecker/push/build_and_copy_website Pipeline was successful
All checks were successful
ci/woodpecker/push/build_and_copy_website Pipeline was successful
This commit is contained in:
parent
8ec88c2bd8
commit
6a5f7af011
2 changed files with 44 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
when:
|
||||
- branch: main
|
||||
- branch: [main, automation-test]
|
||||
event: push
|
||||
path:
|
||||
include: ['Website/**']
|
||||
|
|
@ -12,14 +12,51 @@ steps:
|
|||
- date -I'seconds'
|
||||
|
||||
- name: build_by_hugo
|
||||
image: alpine:3.21
|
||||
# vs image: alpine / welche version?
|
||||
commands:
|
||||
- date -I'seconds'
|
||||
- cat /etc/alpine-release
|
||||
- apk add --no-cache hugo
|
||||
- hugo version
|
||||
- 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
|
||||
- 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
|
||||
|
||||
- which grep
|
||||
- ls -l $(which grep)
|
||||
|
||||
- grep -E ".+" Website/PROD/index.html
|
||||
#- grep -E ".+schon .+" Website/PROD/index.html
|
||||
#lokal läuft $busybox grep -E 'schon' Website/PROD/index.html | ????
|
||||
- if grep -E "Team vollständig" Website/PROD/index.html; then echo "Blog Teamseite"; else echo "Webseite Startseite"; fi
|
||||
- echo $?
|
||||
|
||||
# - grep 'schon' Website/PROD/index.html
|
||||
# - grep 'schon mal selbst Materialien erstellt oder arbeitest in einer Community' Website/PROD/index.html
|
||||
# - grep -E 'schon mal selbst Materialien erstellt oder arbeitest in einer Community' Website/PROD/index.html
|
||||
# - grep -e 'schon mal selbst Materialien erstellt oder arbeitest in einer Community' Website/PROD/index.html
|
||||
- if grep -i -E "Du hast .+ selbst Materialien erstellt .+ in einer Community" Website/PROD/index.html && grep "zielt FOERBICO auf die Vernetzung" Website/PROD/index.html; then echo "Webseite Startseite"; else echo "was anderes; warum?"; fi
|
||||
- echo $?
|
||||
|
||||
- name: build_by_hugo_OLD
|
||||
image: hugomods/hugo
|
||||
commands:
|
||||
- mkdir Website/PROD
|
||||
- mkdir Website/PRODold
|
||||
- hugo version
|
||||
#- hugo -s Website -d PROD --logLevel debug
|
||||
# - grep "zielt FOERBICO auf die Vernetzung" Website/PROD/index.html # enthält index.html auch den Inhalt der Startseite?
|
||||
# - grep localhost Website/PROD/index.html # hat sich beim build ein Fehler eingeschlichen?
|
||||
# - grep -E 'href.+favicon.ico' Website/PROD/index.html | cut -d= -f3 # baseURL ausgeben
|
||||
#- hugo -s Website -d PRODold --logLevel debug
|
||||
# - grep "zielt FOERBICO auf die Vernetzung" Website/PRPRODoldOD/index.html # enthält index.html auch den Inhalt der Startseite?
|
||||
# - grep localhost Website/PRODold/index.html # hat sich beim build ein Fehler eingeschlichen?
|
||||
# - grep -E 'href.+favicon.ico' Website/PRODold/index.html | cut -d= -f3 # baseURL ausgeben
|
||||
|
||||
- name: copy_to_server
|
||||
image: alpine
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit a2eb47bb4b805116dcd34c1605d39835121f8dbe
|
||||
Subproject commit 72615b6d49ab8b102e92e2e487ab420f41ba9223
|
||||
Loading…
Add table
Add a link
Reference in a new issue