Skip to content

Commit

Permalink
apacheGH-43743: [CI][Docs] Ensure creating build directory
Browse files Browse the repository at this point in the history
It's used as a volume. If it doesn't exist, `docker compose` reports
an error:

    Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/runner/work/crossbow/crossbow/build/
  • Loading branch information
kou committed Aug 19, 2024
1 parent 1ae38d0 commit 4089857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dev/tasks/docs/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
env:
ARROW_JAVA_SKIP_GIT_PLUGIN: true
run: |
mkdir -p build
archery docker run \
-e SETUPTOOLS_SCM_PRETEND_VERSION="{{ arrow.no_rc_version }}" \
-v $PWD/build/:/build/ \
{{ flags|default("") }} \
{{ image }} \
{{ command|default("") }}
Expand All @@ -45,7 +47,7 @@ jobs:
ref: {{ default_branch|default("main") }}
path: crossbow
fetch-depth: 1
{% if publish %}
{% if publish %}
- name: Prepare Docs Preview
run: |
# build files are created by the docker user
Expand Down
4 changes: 1 addition & 3 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1486,15 +1486,14 @@ tasks:
image: debian-go
{% endfor %}

# be sure to update binary-task.rb when upgrading ubuntu
# be sure to update binary-task.rb when upgrading Debian
test-debian-12-docs:
ci: github
template: docs/github.linux.yml
params:
env:
JDK: 17
pr_number: Unset
flags: "-v $PWD/build/:/build/"
image: debian-docs
publish: false
artifacts:
Expand Down Expand Up @@ -1620,6 +1619,5 @@ tasks:
env:
JDK: 17
pr_number: Unset
flags: "-v $PWD/build/:/build/"
image: debian-docs
publish: true

0 comments on commit 4089857

Please sign in to comment.