FOERBICO/.woodpecker/woodpecker-workflow-adavanced-test.yaml

32 lines
855 B
YAML
Raw Normal View History

2024-09-04 18:00:37 +00:00
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
2024-09-09 06:04:12 +00:00
image: debian
2024-09-04 18:00:37 +00:00
commands:
- ls ~
- pwd
- ls -la /
- touch /was-duerfen-wir
- who
- uname -a
- id
- groups
2024-09-09 06:05:30 +00:00
#- sudo last ## im alpine image gegenchecken, was dort verfügbar
#- sudo ls /var
2024-09-09 06:04:12 +00:00
- last
2024-09-04 18:00:37 +00:00
- name: going-private
image: debian
2024-09-09 06:29:44 +00:00
settings:
kommando:
from_secret: mytest_mycmd
2024-09-04 18:00:37 +00:00
commands:
#- eval $MYTEST_MYCMD #sind geschachtelte Secrets möglich?
2024-09-09 06:29:44 +00:00
- ls -la $kommando
#- scp -i $SECRET_API_TOKEN $CLIOPTION contributing.md $USER@$SERVER:targetfile
#secrets: [ SECRET_API_TOKEN, mytest_mycmd ]
2024-09-09 06:00:19 +00:00
#secrets: [ mytest_mycmd ] #gehts so?