Skip to content
Snippets Groups Projects
Select Git revision
  • cfb69058a0338401f100bc96ef4ed1bb0a789f38
  • master default
2 results

.bashrc.private.j2

Blame
  • .bashrc.private.j2 717 B
    # vim: ft=bash
    export GITLAB_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab token"])["stdout"] }}'
    export GITLAB_PRIVATE_TOKEN="$GITLAB_TOKEN"
    export GITLAB_REGISTRATION_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab runner registration token"])["stdout"] }}'
    export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI token", "Web Sites/GitHub"])["stdout"] }}'
    export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN"
    {% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%}
    export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}'
    export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS"