Commit 8ce44ec0 authored by ∞'s avatar 💻

Json variable support

parent 230a3938
Pipeline #2841 failed with stages
in 30 seconds
......@@ -28,7 +28,7 @@ test-playbook-executable:
./example/playbook.yml
grep hello ./playbook.out
test-clones-main:
test-clone-main:
<<: *test
script: |
bigsudo -v yourlabs.io/oss/yourlabs.bigsudo-example @localhost example_variable=$(pwd)/test1
......@@ -36,8 +36,9 @@ test-clones-main:
test-clone-update:
<<: *test
variables:
script: |
bigsudo -v yourlabs.io/oss/yourlabs.bigsudo-example @localhost example_variable=$(pwd)/test2 update
bigsudo -v yourlabs.io/oss/yourlabs.bigsudo-example update "{\"example_variable\": \"$(pwd)/test2\"}"
grep update test2
test-clone-local:
......
......@@ -71,7 +71,7 @@ This chapter describes the steps to setup the following deploy job in your
script:
- mkdir -p ~/.ssh; echo $staging_key > ~/.ssh/id_ed25519; echo $staging_fingerprint > ~/.ssh/known_hosts; chmod 700 ~/.ssh; chmod 600 ~/.ssh/*
- bigsudo . $staging_host $staging_vars
- bigsudo . $staging_host --extra-vars=$staging_vars
only:
refs: [master]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment