File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 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.
1120if [[ " ${BASH_SOURCE[0]} " == " $0 " ]]; then
You can’t perform that action at this time.
0 commit comments