2022-07-27 14:11:38 +00: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
|
2023-02-08 17:21:38 +00:00
|
|
|
if [ ! -d template ]
|
2022-07-27 14:11:38 +00:00
|
|
|
then
|
2023-02-08 17:21:38 +00:00
|
|
|
faas-cli template store pull python3-flask
|
2022-07-27 14:11:38 +00:00
|
|
|
fi
|
2023-05-16 18:29:12 +00:00
|
|
|
faas-cli publish -f functions.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false'
|
|
|
|
faas-cli deploy -f functions.yml
|