Skip to content

Commit

Permalink
docs: introduce comments to create-build-script (#5045)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts committed Feb 9, 2024
1 parent 0a803b2 commit 32c6e5f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/create-build-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/usr/bin/env bash
set -exuo pipefail
# determine script directory
set -exuo pipefail # ensures that the script exits on any error, and that all commands are printed before they are executed

# This script is used for building Docker images which in turn build the CLI.
# It sets up the environment, logs into Docker, and builds images for different architectures.

# Before running the script, ensure DOCKER_USERNAME and DOCKER_PASSWORD environment variables are set.
# Example usage:
# export DOCKER_USERNAME=<your-docker-hub-username>
# export DOCKER_PASSWORD=<a-docker-hub-personal-access-token>
# ./scripts/create-build-image.sh

# Determine the directory where the script is located.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
NOW=$(date "+%Y%m%d-%H%M%S")

Expand Down

0 comments on commit 32c6e5f

Please sign in to comment.