Fix pipeline env-file sourcing: use if/then to handle special chars in .env files
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ steps:
|
|||||||
"$f" root@192.168.4.32:/volume1/docker/compose-files/
|
"$f" root@192.168.4.32:/volume1/docker/compose-files/
|
||||||
ssh -o StrictHostKeyChecking=no root@192.168.4.32 \
|
ssh -o StrictHostKeyChecking=no root@192.168.4.32 \
|
||||||
"cd /volume1/docker/compose-files \
|
"cd /volume1/docker/compose-files \
|
||||||
&& set -a && [ -f ${STACK}.env ] && . ./${STACK}.env; set +a \
|
&& if [ -f ${STACK}.env ]; then set -a; . ./${STACK}.env; set +a; fi \
|
||||||
&& docker stack deploy -c ${STACK}.yaml ${STACK}" \
|
&& docker stack deploy -c ${STACK}.yaml ${STACK}" \
|
||||||
&& echo " OK $STACK" || { echo " FAIL $STACK"; exit 1; }
|
&& echo " OK $STACK" || { echo " FAIL $STACK"; exit 1; }
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user