Skip to content

Commit

Permalink
Adding GitHub token to script
Browse files Browse the repository at this point in the history
  • Loading branch information
TDDR committed Feb 14, 2022
1 parent 9a56315 commit 38468f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/autodeployment/deploy.sh
Expand Up @@ -34,7 +34,7 @@ fi
echo "GIT_COMMIT=$2" >> $ENV_FILE

echo "Building $ENV Container"
docker-compose --env-file $ENV_FILE --project-name=$ENV build
GITHUB_TOKEN=$GITHUB_TOKEN docker-compose --env-file $ENV_FILE --project-name=$ENV build

# Delete associated project orphans (services) and volumes
echo "Stopping "$OLD" Environment"
Expand All @@ -44,7 +44,7 @@ echo "Deleting $OLD Volumes"
docker volume prune -f

echo "Starting $ENV Environment"
docker-compose --env-file $ENV_FILE --project-name=$ENV up -d
GITHUB_TOKEN=$GITHUB_TOKEN docker-compose --env-file $ENV_FILE --project-name=$ENV up -d

echo "Removing dangling images"
docker rmi $(docker images -f "dangling=true" -q)
Expand Down

0 comments on commit 38468f6

Please sign in to comment.