#!/bin/bash
# Because the Dockerfile uses secrets named `github_username` and `github_access_token`, we need
# to supply them to the CLI. This instructs it to pull the values from env vars named 
# GITHUB_USERNAME and GITHUB_ACCESS_TOKEN.
docker build \
  --progress plain \
  --secret id=github_username,env=GITHUB_USERNAME \
  --secret id=github_access_token,env=GITHUB_ACCESS_TOKEN \
  . \
  -f "./Dockerfile"