Functions/build.sh

21 lines
611 B
Bash
Raw Permalink Normal View History

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