Automatically update descriptions on Docker Hub #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Docker Hub Description | |
on: | |
push: | |
branches: | |
- main | |
# REMOVE BEFORE FLIGHT: for testing | |
- dockerhub-descriptions | |
paths: | |
- versions.md | |
- README.md | |
- docs/**/* | |
workflow_dispatch: | |
jobs: | |
updateDescriptions: | |
name: Update description on Docker Hub | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- minimal | |
- core | |
- latex | |
- extra | |
- typst | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pandoc | |
uses: pandoc/actions/setup | |
- name: Short description | |
id: config | |
run: | | |
printf 'short_description=%s\n' \ | |
"$(pandoc lua docs/scripts/short-description.lua \ | |
${{ matrix.image }})" \ | |
>> $GITHUB_OUTPUT | |
- name: Generate README files | |
run: | | |
make docs-${{ matrix.image }} > /tmp/README.${{ matrix.image }}.md | |
- name: minimal | |
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
repository: pandoc/${{ matrix.image }} | |
readme-filepath: /tmp/README.${{ matrix.image }}.md | |
short-description: ${{ steps.config.outputs.short_description }} |