Skip to content
Snippets Groups Projects
Verified Commit 5ec15979 authored by Purple Clay's avatar Purple Clay
Browse files

fix: execute dagger within a subshell for correct variable escaping and expansion

parent 1da70a50
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,8 @@ variables:
# https://docs.dagger.io/integrations/734201/gitlab
DAGGER_CLOUD_GRACE_PERIOD: 300
script:
- dagger ${DAGGER_VERB} ${DAGGER_MODULE:+-m $DAGGER_MODULE} ${DAGGER_ARGS}
# Need to use bash to ensure variable escaping and expansion works!
- bash -c "dagger ${DAGGER_VERB} ${DAGGER_MODULE:+-m $DAGGER_MODULE} ${DAGGER_ARGS}"
- |
if [[ -n "${DAGGER_CLOUD_TOKEN}" ]]; then
echo "syncing cache with dagger cloud (timeout: ${DAGGER_CLOUD_GRACE_PERIOD} second(s))"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment