Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabrot committed Mar 4, 2024
1 parent 878dffa commit 2d3d7ae
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
set -e

# Define the GitHub token to get rid of binstall warning to rule this out as cause for error
GITHUB_TOKEN=$(gh auth token)

# Build the Docker image, passing the GitHub token as a build argument
docker buildx build . --progress=plain --build-arg GITHUB_TOKEN="$GITHUB_TOKEN"

if GITHUB_TOKEN=$(gh auth token); then
# Build the Docker image, passing the GitHub token as a build argument
docker buildx build . --progress=plain --build-arg GITHUB_TOKEN="$GITHUB_TOKEN"
else
# Build the Docker image without the GitHub token
docker buildx build . --progress=plain
fi
# Build for amd64 - works
#docker build --platform linux/amd64 .

Expand Down

0 comments on commit 2d3d7ae

Please sign in to comment.