#!/usr/bin/env bash set -euo pipefail echo ">>> Decrypting secrets for staging..." sops -d envs/common.env > .env.common sops -d envs/staging.env > .env.staging.decrypted cat .env.common .env.staging.decrypted > .env.staging rm -f .env.common .env.staging.decrypted echo ">>> Secrets decrypted. Restarting services..." make staging-up echo ">>> Deployment to staging finished!"