Skip to content

Commit

Permalink
yadm: use op read
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Apr 18, 2024
1 parent 161b65a commit a15ac4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .config/yadm/bootstrap.d/secrets.sh##c.Me,e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >~/.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

Expand Down

0 comments on commit a15ac4b

Please sign in to comment.