Functions/build.sh

19 lines
499 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
2023-07-17 20:08:45 -03:00
# secrets
2024-03-22 16:34:21 -03:00
export OPENFAAS_URL=http://pinky:8082
2023-07-17 20:08:45 -03:00
pass iol-pass | faas-cli secret create iol-pass
pass iol-user | faas-cli secret create iol-user
pass iol-api-secret | faas-cli secret create iol-api-secret
2023-06-05 16:02:54 -03:00
2023-06-01 19:31:38 -03:00
faas-cli publish -f functions.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false' $*
faas-cli deploy -f functions.yml $*