From a15ac4b950480c5659e8d1b3f5c0396e088847f8 Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Wed, 17 Apr 2024 18:44:22 -0700 Subject: [PATCH] yadm: use `op read` --- .config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh b/.config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh index 1a5c032..a8d0297 100644 --- a/.config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh +++ b/.config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh @@ -9,16 +9,16 @@ eval "$(op signin)" ### docker ### debug "Fetching Docker credentials" export PATH="${PATH+$PATH:}/Applications/Docker.app/Contents/Resources/bin" -op item get docker --fields token | docker login --username branchvincent --password-stdin +op read op://personal/docker/token | docker login --username branchvincent --password-stdin ## env ### debug "Creating shell secrets" -GITHUB_TOKEN=$(op item get GitHub --fields token) +GITHUB_TOKEN=$(op read op://personal/github/token) export GITHUB_TOKEN cat <~/.config/fish/conf.d/secrets.fish set -gx GITHUB_TOKEN $GITHUB_TOKEN -set -gx NGROK_AUTHTOKEN $(op item get ngrok --fields token) -set -gx NPM_TOKEN $(op item get NPM --fields token) +set -gx NGROK_AUTHTOKEN $(op read op://personal/ngrok/token) +set -gx NPM_TOKEN $(op read op://personal/npm/token) EOF chmod 600 ~/.config/fish/conf.d/secrets.fish