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

cgit.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"