This commit is contained in:
parent
9697bf6b39
commit
96c94634a6
|
@ -4,6 +4,13 @@ steps:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
image: 'myhugo:0.3'
|
image: 'myhugo:0.3'
|
||||||
|
environment:
|
||||||
|
http_user:
|
||||||
|
from_secret: http_user
|
||||||
|
http_pass:
|
||||||
|
from_secret: http_pass
|
||||||
|
http_endpoint:
|
||||||
|
from_secret: http_endpoint
|
||||||
commands:
|
commands:
|
||||||
- 'hugo'
|
- 'hugo'
|
||||||
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
|
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
|
||||||
|
@ -11,4 +18,3 @@ steps:
|
||||||
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
|
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
|
||||||
- 'echo "$response"'
|
- 'echo "$response"'
|
||||||
- 'test "$response" = "Success"'
|
- 'test "$response" = "Success"'
|
||||||
secrets: [ http_user, http_pass, http_endpoint ]
|
|
||||||
|
|
Loading…
Reference in a new issue