Skip to content

Commit

Permalink
apacheGH-36839: [CI][Docs] Update test-ubuntu-default-docs to use Git…
Browse files Browse the repository at this point in the history
…Hub actions instead of Azure
  • Loading branch information
raulcd committed Jul 24, 2023
1 parent 22339a2 commit cddd97e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
10 changes: 10 additions & 0 deletions dev/tasks/docs/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
ref: {{ default_branch|default("main") }}
path: crossbow
fetch-depth: 1
{% if publish %}
- name: Prepare docs
run: |
# build files are created by the docker user
Expand All @@ -61,3 +62,12 @@ jobs:
run: |
aws s3 cp build/docs/ $BUCKET/pr_docs/{{ pr_number }}/ --recursive
echo ":open_book: You can find the preview here: http://crossbow.voltrondata.com/pr_docs/{{ pr_number }}" >> $GITHUB_STEP_SUMMARY
{% endif %}
{% if artifacts is defined %}
- name: Prepare artifacts
run: |
cd build
sudo chown -R ${USER}: .
tar cvzf docs.tar.gz docs
{{ macros.github_upload_releases(artifacts)|indent }}
{% endif %}
14 changes: 6 additions & 8 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1434,17 +1434,15 @@ tasks:
image: debian-go
{% endfor %}


test-ubuntu-default-docs:
ci: azure
template: docker-tests/azure.linux.yml
ci: github
template: docs/github.linux.yml
params:
artifacts: "build/docs.tar.gz"
pr_number: Unset
flags: "-v $PWD/build/:/build/"
image: ubuntu-docs
post_script: |
cd build
sudo chown -R ${USER}: .
tar cvzf docs.tar.gz docs
publish: false
artifacts:
- docs.tar.gz

Expand Down Expand Up @@ -1565,6 +1563,6 @@ tasks:
template: docs/github.linux.yml
params:
pr_number: Unset
artifacts: "build/docs.tar.gz"
flags: "-v $PWD/build/:/build/"
image: ubuntu-docs
publish: true

0 comments on commit cddd97e

Please sign in to comment.