Automate your Doppler secrets & use them in your developer workflow on a Cloud Dev Environment - Gitpod
-
Create a Doppler account and a project.
-
Create a Doppler service token and add it to Gitpod Environment variables.
-
Start a Gitpod workspace:
Gitpod is an ephemeral environment, so we need to install the Doppler CLI on every workspace start, but we can do it more smartly with Gitpod init tasks & Gitpod Dockerfile.
Example of a .gitpod.Dockerfile file
FROM gitpod/workspace-full:latest
# Install & configure Doppler CLI
RUN (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo shExample of a .gitpod.yml file
image:
file: .gitpod.Dockerfile
tasks:
- name: Doppler
command: |
doppler setupNote: To speed up Gitpod workspace startup times, you can configure Gitpod prebuilds to build the Docker image before the first workspace start.
doppler setupdoppler secrets --rawdoppler run --command='echo $SENDGRID_API_KEY'


