SECRET ENV [secret name...]
The SECRET ENV
instruction adds values from secrets to the runner’s
environment.
Secrets are useful for storing sensitive information. They can hold passwords,
API keys, or other private credentials. For security reasons, it is good
practice to not keep this information within source code. Managing private data
using secrets allows easy authentication with other services on your behalf.
Webapp.io has a secrets manager built into the platform. This makes entering and
editing secrets as simple as 1, 2, 3:
Step 1: Navigate to the secrets tab in your webapp.io account.
SECRET ENV ENV_FILE
to expose your dotfile env .env
and then use
RUN echo "$ENV_FILE" | base64 -d > ~/.env
to decode the uploaded env file to
the specific location.