Skip to content

Commit 9b4363d

Browse files
committed
Update load-env.sh
1 parent 705824b commit 9b4363d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

load-env.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
#!/usr/bin/env bash
22

3-
# Load variables from the .env file into the current shell.
3+
# Load variables from the .env file into the current shell so they're available to kamal and other commands.
44
# NOTE: This script must be *sourced*, not executed, e.g.:
55
# source load-env.sh
66
# or
77
# . ./load-env.sh
88

9+
# Add the necessary variables used by ./config/deploy.yml to .env file, e.g:
10+
# - GITHUB_REPOSITORY=org/repo # Repo name used to derive image/service name and folder paths
11+
# - KAMAL_DEPLOY_IP=100.100.100.100 # IP address of server to deploy to
12+
# - KAMAL_DEPLOY_HOST=www.example.org # domain name of website
13+
# - KAMAL_REGISTRY_USERNAME=user # Container registry credentials (for ghcr.io)
14+
# - GITHUB_PACKAGES_TOKEN=ghp_xxx
15+
# Login with:
16+
# echo $KAMAL_REGISTRY_PASSWORD | docker login ghcr.io -u mythz --password-stdin
17+
918
# If this script is run directly (./load-env.sh), print a warning because
1019
# environment changes will not persist in the parent shell.
1120
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then

0 commit comments

Comments
 (0)