Skip to content

Commit

Permalink
chore(ci): make docker build verbose in CI
Browse files Browse the repository at this point in the history
Let's make CI builds more verbose (controllable by `VERBOSE=1` env var)
  • Loading branch information
ivan-aksamentov committed May 3, 2023
1 parent 9e1d2ab commit 818bc87
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/bioconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defaults:

env:
GITHUB_REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
VERBOSE: 1

jobs:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/builder-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defaults:

env:
GITHUB_REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
VERBOSE: 1

jobs:
build-base-image:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defaults:

env:
GITHUB_REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
VERBOSE: 1

jobs:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defaults:

env:
GITHUB_REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository }}
VERBOSE: 1

jobs:
build-web:
Expand Down
6 changes: 5 additions & 1 deletion docker-dev
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ if ! docker inspect --format '{{.Id}}' "${DOCKER_REPO}:${DOCKER_TARGET}-${DOCKER
CACHE_SCOPE="${DOCKER_REPO}-${DOCKER_TARGET}-${BRANCH}"
BUILDX_CACHE_DIR="${CACHE_DIR}/buildx"

${NICE} docker buildx build -q \
if [ "${VERBOSE:=0}" != "1" ]; then
ADDITIONAL_DOCKER_BUILD_ARGS="${ADDITIONAL_DOCKER_BUILD_ARGS} -q"
fi

${NICE} docker buildx build \
--file="docker/docker-dev.dockerfile" \
--target="${DOCKER_TARGET}" \
--tag="${DOCKER_REPO}:${DOCKER_TARGET}" \
Expand Down

0 comments on commit 818bc87

Please sign in to comment.