This commit is contained in:
parent
60ccac25d7
commit
92d20db1ec
20
.woodpecker.yaml
Normal file
20
.woodpecker.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: alpine
|
||||||
|
name: Build project
|
||||||
|
privileged: false
|
||||||
|
commands:
|
||||||
|
- envsubst < scripts.sh > project.sh
|
||||||
|
- chmod +x project.sh
|
||||||
|
environment:
|
||||||
|
MESSAGE: hello
|
||||||
|
run:
|
||||||
|
image: alpine
|
||||||
|
name: Run the project
|
||||||
|
commands:
|
||||||
|
- ./project.sh
|
3
project.sh
Executable file
3
project.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "Hello"
|
@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo Hello world
|
echo "${MESSAGE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user