From 9b4d577c65a87f49db4bdadd9e69f5f7a0ed4006 Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:02:38 +0200 Subject: [PATCH] remove refrecence docs generation Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- .github/workflows/docs.yml | 56 -------------------------------------- Dockerfile | 6 ---- 2 files changed, 62 deletions(-) delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index f14b7631..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Docs - -on: - release: - types: [published] - -permissions: {} -jobs: - open-pr: - permissions: - contents: write # to create branch (peter-evans/create-pull-request) - pull-requests: write # to create a PR (peter-evans/create-pull-request) - - runs-on: ubuntu-latest - steps: - - - name: Checkout docs repo - uses: actions/checkout@v3 - with: - token: ${{ secrets.GHPAT_DOCS_DISPATCH }} - repository: docker/docs - ref: main - - - name: Prepare - run: | - rm -rf ./_data/compose-cli/* - - - name: Build - uses: docker/build-push-action@v3 - with: - context: ${{ github.server_url }}/${{ github.repository }}.git#${{ github.event.release.name }} - target: docs-reference - outputs: ./_data/compose-cli - - - name: Update compose_version in _config.yml - run: | - sed -i "s|^compose_version\:.*|compose_version\: \"${{ github.event.release.name }}\"|g" _config.yml - cat _config.yml | yq .compose_version - - - name: Commit changes - run: | - git add -A . - - - name: Create PR on docs repo - uses: peter-evans/create-pull-request@923ad837f191474af6b1721408744feb989a4c27 # v4.0.4 - with: - token: ${{ secrets.GHPAT_DOCS_DISPATCH }} - push-to-fork: docker-tools-robot/docker.github.io - commit-message: Update Compose reference API to ${{ github.event.release.name }} - signoff: true - branch: dispatch/compose-api-reference-${{ github.event.release.name }} - delete-branch: true - title: Update Compose reference API to ${{ github.event.release.name }} - body: | - Update the Compose reference API documentation to keep in sync with the latest release `${{ github.event.release.name }}` - draft: false diff --git a/Dockerfile b/Dockerfile index 561382d0..b72f6065 100644 --- a/Dockerfile +++ b/Dockerfile @@ -192,9 +192,3 @@ RUN --mount=from=binary \ FROM scratch AS release COPY --from=releaser /out/ / - -# docs-reference is a target used as remote context to update docs on release -# with latest changes on docs.docker.com. -# see open-pr job in .github/workflows/docs.yml for more details -FROM scratch AS docs-reference -COPY docs/reference/*.yaml .