Separate build/deploy
This commit is contained in:
parent
a83db61155
commit
161cb598c4
15
nombres/build.sh
Executable file
15
nombres/build.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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 templates]
|
||||
then
|
||||
faas-cli template store pull python3-http
|
||||
fi
|
||||
faas-cli publish -f nombres.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false'
|
||||
faas-cli deploy -f nombres.yml
|
@ -1,15 +1,5 @@
|
||||
#!/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 templates]
|
||||
then
|
||||
faas-cli template store pull python3-http
|
||||
fi
|
||||
faas-cli publish -f nombres.yml --platforms linux/arm64 --build-arg 'TEST_ENABLED=false'
|
||||
pass faas.ralsina.me | faas-cli login --password-stdin
|
||||
faas-cli deploy -f nombres.yml
|
||||
|
Loading…
Reference in New Issue
Block a user