Functions/build.sh
2023-05-16 12:38:37 -03:00

16 lines
374 B
Bash
Executable File

#!/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 ]
then
faas-cli template store pull python3-flask
fi
faas-cli publish -f nombres.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false'
faas-cli deploy -f nombres.yml