32 lines
855 B
YAML
32 lines
855 B
YAML
when:
|
|
- event: push
|
|
branch: [no-real-branch, feature/working-*]
|
|
#https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
|
|
|
|
steps:
|
|
- name: wir-testen-die-umgebung
|
|
image: debian
|
|
commands:
|
|
- ls ~
|
|
- pwd
|
|
- ls -la /
|
|
- touch /was-duerfen-wir
|
|
- who
|
|
- uname -a
|
|
- id
|
|
- groups
|
|
#- sudo last ## im alpine image gegenchecken, was dort verfügbar
|
|
#- sudo ls /var
|
|
- last
|
|
- name: going-private
|
|
image: debian
|
|
settings:
|
|
kommando:
|
|
from_secret: mytest_mycmd
|
|
commands:
|
|
#- eval $MYTEST_MYCMD #sind geschachtelte Secrets möglich?
|
|
- ls -la $kommando
|
|
#- scp -i $SECRET_API_TOKEN $CLIOPTION contributing.md $USER@$SERVER:targetfile
|
|
#secrets: [ SECRET_API_TOKEN, mytest_mycmd ]
|
|
#secrets: [ mytest_mycmd ] #gehts so?
|