mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-24 15:52:34 +00:00
18 lines
506 B
Bash
Executable File
18 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
## on push branch=main
|
|
|
|
set -euxo pipefail
|
|
|
|
make -C docs
|
|
|
|
export KUBECONFIG=/ci/secrets/kubeconfig.yml
|
|
POD=$(kubectl -n embassy get po -l app=website -o jsonpath={.items[0].metadata.name})
|
|
|
|
mkdir -p build
|
|
mv docs/book build/book
|
|
tar -C build -cf book.tar book
|
|
kubectl exec $POD -- mkdir -p /usr/share/nginx/html
|
|
kubectl cp book.tar $POD:/usr/share/nginx/html/
|
|
kubectl exec $POD -- find /usr/share/nginx/html
|
|
kubectl exec $POD -- tar -C /usr/share/nginx/html -xvf /usr/share/nginx/html/book.tar
|