github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/.github/workflows/docs-upstream.yml (about) 1 # this workflow runs the remote validate bake target from docker/docker.github.io 2 # to check if yaml reference docs and markdown files used in this repo are still valid 3 # https://github.com/docker/docker.github.io/blob/98c7c9535063ae4cd2cd0a31478a21d16d2f07a3/docker-bake.hcl#L34-L36 4 name: docs-upstream 5 6 concurrency: 7 group: ${{ github.workflow }}-${{ github.ref }} 8 cancel-in-progress: true 9 10 on: 11 push: 12 branches: 13 - 'master' 14 - 'v[0-9]*' 15 paths: 16 - '.github/workflows/docs-upstream.yml' 17 - 'docs/**' 18 pull_request: 19 paths: 20 - '.github/workflows/docs-upstream.yml' 21 - 'docs/**' 22 23 jobs: 24 docs-yaml: 25 runs-on: ubuntu-22.04 26 steps: 27 - 28 name: Checkout 29 uses: actions/checkout@v4 30 - 31 name: Set up Docker Buildx 32 uses: docker/setup-buildx-action@v3 33 with: 34 version: latest 35 - 36 name: Build reference YAML docs 37 uses: docker/bake-action@v4 38 with: 39 targets: update-docs 40 provenance: false 41 set: | 42 *.output=/tmp/buildx-docs 43 *.cache-from=type=gha,scope=docs-yaml 44 *.cache-to=type=gha,scope=docs-yaml,mode=max 45 env: 46 DOCS_FORMATS: yaml 47 - 48 name: Upload reference YAML docs 49 uses: actions/upload-artifact@v4 50 with: 51 name: docs-yaml 52 path: /tmp/buildx-docs/out/reference 53 retention-days: 1 54 55 validate: 56 uses: docker/docs/.github/workflows/validate-upstream.yml@6b73b05acb21edf7995cc5b3c6672d8e314cee7a # pin for artifact v4 support: https://github.com/docker/docs/pull/19220 57 needs: 58 - docs-yaml 59 with: 60 module-name: docker/buildx 61 data-files-id: docs-yaml 62 data-files-folder: buildx 63 create-placeholder-stubs: true