Functions/build.sh

16 lines
378 B
Bash
Raw Normal View History

2022-07-27 11:11:38 -03:00
#!/bin/sh -x
set -e
# My FAAS is arm64, so need to install this to cross-compile
docker run --rm --privileged \
multiarch/qemu-user-static \
--reset -p yes
# Build and deploy
if [ ! -d template ]
2022-07-27 11:11:38 -03:00
then
faas-cli template store pull python3-flask
2022-07-27 11:11:38 -03:00
fi
2023-05-16 15:29:12 -03:00
faas-cli publish -f functions.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false'
faas-cli deploy -f functions.yml