qiskit.org/deploy/deploy_cos.sh

17 lines
528 B
Bash
Executable File

#!/bin/bash
set -e
#install rclone
curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb
sudo apt-get install -y ./rclone.deb
CONFIG_PATH=$(rclone config file | tail -1)
# Decrypt config
openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in rclone.conf.enc -out $CONFIG_PATH -d
git clone --depth=1 https://github.com/Qiskit/ibm-quantum-schemas.git
cp -r ibm-quantum-schemas/schemas ../dist/.
rclone sync --exclude-from ./static-sites.txt ../dist IBMCOS:qiskit-org-web-resources