Skip to content

Commit

Permalink
ci: add masked .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
Saibo Geng committed Sep 25, 2023
1 parent 11f6770 commit 34f2010
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
USER_NAME="xxxxx" # find this by running `id -un` on HaaS
USER_ID=123 # find this by running `id -u` on HaaS
GROUP_NAME1="xxxxx" # find this by running `id -gn` on HaaS
GROUP_ID1=123 # find this by running `id -g` on HaaS
GROUP_NAME2="yyyyy"
GROUP_ID2=456
#
GITHUB_PERSONAL_TOKEN="xxxxx"
WANDB_API_KEY="xxxxx"
GITHUB_NAME="xxxxx"
GITHUB_EMAIL="[email protected]"
GITHUB_USERNAME="xxxxx"
HF_API_KEY="xxxxx"
9 changes: 9 additions & 0 deletions docker/build_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

project="${1:-gcd}" # Use "llama" if no argument is provided
tag="${2:-latest}" # Use "latest" if no tag argument is provided
user="${3:-geng}"

docker build -f docker/Dockerfile --build-arg USER_NAME=${user} --build-arg PROJECT_NAME=${project} -t ic-registry.epfl.ch/dlab/"${user}"/"${project}":"${tag}" --secret id=dot_env,src=docker/.env .

#docker push ic-registry.epfl.ch/dlab/"${user}"/"${project}":"${tag}"

0 comments on commit 34f2010

Please sign in to comment.