From 625480b1ffc224d35ba0f748969855ba5ae5e4ee Mon Sep 17 00:00:00 2001 From: Lubos Mjachky Date: Tue, 2 Jul 2024 15:39:00 +0200 Subject: [PATCH] Remove deprecated CI and legacy docs files [noissue] --- .github/template_gitref | 2 +- .github/workflows/changelog.yml | 58 ---- .github/workflows/nightly.yml | 52 ---- .github/workflows/publish.yml | 61 ---- .github/workflows/scripts/docs-publisher.py | 262 ------------------ .../scripts/install_python_client.sh | 69 ----- .../workflows/scripts/install_ruby_client.sh | 42 --- .github/workflows/scripts/post_docs_test.sh | 9 - .github/workflows/scripts/publish_docs.sh | 48 ---- .github/workflows/scripts/script.sh | 11 - .github/workflows/test.yml | 9 - CHANGES/.TEMPLATE.rst | 47 ---- doc_requirements.txt | 11 - docs/_scripts/base.sh | 32 --- docs/_scripts/build_containerfile.sh | 16 -- docs/_scripts/cleanup_export.sh | 5 - docs/_scripts/create_containerfile.sh | 11 - docs/_scripts/create_example.sh | 12 - docs/_scripts/distribution.sh | 22 -- docs/_scripts/docs_check.sh | 38 --- docs/_scripts/download_after_sync.sh | 11 - docs/_scripts/download_after_tagging.sh | 22 -- docs/_scripts/export_repository.sh | 20 -- docs/_scripts/image_tagging.sh | 18 -- docs/_scripts/image_untagging.sh | 18 -- docs/_scripts/import_repository.sh | 14 - docs/_scripts/manifest_copy.sh | 15 - docs/_scripts/recursive_add_tag.sh | 19 -- docs/_scripts/recursive_remove_tag.sh | 15 - docs/_scripts/remote.sh | 11 - docs/_scripts/repo.sh | 9 - docs/_scripts/second_repo.sh | 9 - docs/_scripts/sync.sh | 15 - docs/_scripts/tag_copy.sh | 16 -- docs/template_gitref | 2 +- template_config.yml | 6 +- 36 files changed, 3 insertions(+), 1034 deletions(-) delete mode 100644 .github/workflows/changelog.yml delete mode 100755 .github/workflows/scripts/docs-publisher.py delete mode 100755 .github/workflows/scripts/install_python_client.sh delete mode 100755 .github/workflows/scripts/install_ruby_client.sh delete mode 100755 .github/workflows/scripts/post_docs_test.sh delete mode 100755 .github/workflows/scripts/publish_docs.sh delete mode 100644 CHANGES/.TEMPLATE.rst delete mode 100755 docs/_scripts/base.sh delete mode 100644 docs/_scripts/build_containerfile.sh delete mode 100644 docs/_scripts/cleanup_export.sh delete mode 100644 docs/_scripts/create_containerfile.sh delete mode 100644 docs/_scripts/create_example.sh delete mode 100755 docs/_scripts/distribution.sh delete mode 100755 docs/_scripts/docs_check.sh delete mode 100755 docs/_scripts/download_after_sync.sh delete mode 100644 docs/_scripts/download_after_tagging.sh delete mode 100644 docs/_scripts/export_repository.sh delete mode 100644 docs/_scripts/image_tagging.sh delete mode 100644 docs/_scripts/image_untagging.sh delete mode 100644 docs/_scripts/import_repository.sh delete mode 100755 docs/_scripts/manifest_copy.sh delete mode 100755 docs/_scripts/recursive_add_tag.sh delete mode 100755 docs/_scripts/recursive_remove_tag.sh delete mode 100755 docs/_scripts/remote.sh delete mode 100755 docs/_scripts/repo.sh delete mode 100755 docs/_scripts/second_repo.sh delete mode 100755 docs/_scripts/sync.sh delete mode 100755 docs/_scripts/tag_copy.sh diff --git a/.github/template_gitref b/.github/template_gitref index 3d3d9afe4..7085211f4 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-349-g9fe470c diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index f589015de..000000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,58 +0,0 @@ -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - ---- -name: "Container changelog update" -on: - push: - branches: - - "main" - paths: - - "CHANGES.rst" - - "CHANGES.md" - workflow_dispatch: - -jobs: - - update-changelog: - runs-on: "ubuntu-latest" - strategy: - fail-fast: false - - steps: - - uses: "actions/checkout@v4" - with: - fetch-depth: 1 - - - uses: "actions/setup-python@v5" - with: - python-version: "3.11" - - - name: "Install python dependencies" - run: | - echo ::group::PYDEPS - pip install -r doc_requirements.txt - echo ::endgroup:: - - - name: "Fake api schema" - run: | - mkdir -p docs/_build/html - echo "{}" > docs/_build/html/api.json - mkdir -p docs/_static - echo "{}" > docs/_static/api.json - - name: "Build Docs" - run: | - make diagrams html - working-directory: "./docs" - env: - PULP_CONTENT_ORIGIN: "http://localhost/" - - - name: "Publish changlog to pulpproject.org" - run: | - .github/workflows/scripts/publish_docs.sh changelog ${GITHUB_REF##*/} - env: - PULP_DOCS_KEY: "${{ secrets.PULP_DOCS_KEY }}" diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6fce25fc2..233819a11 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -65,55 +65,3 @@ jobs: branch: "changelog/update" delete-branch: true path: "pulp_container" - - publish: - runs-on: ubuntu-latest - needs: test - - steps: - - uses: "actions/checkout@v4" - with: - fetch-depth: 1 - path: "pulp_container" - - - uses: actions/download-artifact@v4 - with: - name: "plugin_package" - path: "pulp_container/dist/" - - - uses: "actions/setup-python@v5" - with: - python-version: "3.11" - - - name: "Install python dependencies" - run: | - echo ::group::PYDEPS - pip install requests 'packaging~=21.3' mkdocs pymdown-extensions 'Jinja2<3.1' - echo ::endgroup:: - - - name: "Set environment variables" - run: | - echo "TEST=${{ matrix.env.TEST }}" >> $GITHUB_ENV - - - name: Download built docs - uses: actions/download-artifact@v4 - with: - name: "docs.tar" - path: "pulp_container" - - - name: Download Python client docs - uses: actions/download-artifact@v4 - with: - name: "python-client-docs.tar" - path: "pulp_container" - - - name: "Setting secrets" - run: | - python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT" - env: - SECRETS_CONTEXT: "${{ toJson(secrets) }}" - - - name: Publish docs to pulpproject.org - run: | - tar -xvf docs.tar -C ./docs - .github/workflows/scripts/publish_docs.sh nightly ${GITHUB_REF##*/} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e112f554b..be92f8d28 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -114,20 +114,6 @@ jobs: pulp_container/container-ruby-client.tar if-no-files-found: "error" overwrite: true - - name: Build docs - run: | - export DJANGO_SETTINGS_MODULE=pulpcore.app.settings - export PULP_SETTINGS=$PWD/.ci/ansible/settings/settings.py - make -C docs/ PULP_URL="https://pulp" diagrams html - tar -cvf docs/docs.tar docs/_build - - - name: "Upload built docs" - uses: actions/upload-artifact@v4 - with: - name: "docs.tar" - path: "pulp_container/docs/docs.tar" - if-no-files-found: "error" - overwrite: true - name: "Logs" if: always() @@ -258,52 +244,6 @@ jobs: - name: "Publish client to rubygems" run: | bash .github/workflows/scripts/publish_client_gem.sh ${{ github.ref_name }} - publish-docs: - runs-on: "ubuntu-latest" - needs: - - "build-bindings-docs" - - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - steps: - - uses: "actions/checkout@v4" - with: - fetch-depth: 1 - path: "pulp_container" - - - uses: "actions/setup-python@v5" - with: - python-version: "3.11" - - - name: "Install python dependencies" - run: | - echo ::group::PYDEPS - pip install 'packaging~=21.3' requests - echo ::endgroup:: - - - name: "Setting secrets" - run: | - python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT" - env: - SECRETS_CONTEXT: "${{ toJson(secrets) }}" - - - name: "Download built docs" - uses: "actions/download-artifact@v4" - with: - name: "docs.tar" - path: "pulp_container/" - - - name: "Download Python client docs" - uses: "actions/download-artifact@v4" - with: - name: "python-client-docs.tar" - path: "pulp_container/" - - - name: "Publish docs to pulpproject.org" - run: | - tar -xvf docs.tar - .github/workflows/scripts/publish_docs.sh tag ${{ github.ref_name }} create-gh-release: runs-on: "ubuntu-latest" @@ -312,7 +252,6 @@ jobs: - "publish-package" - "publish-python-bindings" - "publish-ruby-bindings" - - "publish-docs" steps: - name: "Create release on GitHub" diff --git a/.github/workflows/scripts/docs-publisher.py b/.github/workflows/scripts/docs-publisher.py deleted file mode 100755 index 20584018a..000000000 --- a/.github/workflows/scripts/docs-publisher.py +++ /dev/null @@ -1,262 +0,0 @@ -#!/usr/bin/env python - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -import argparse -import subprocess -import os -import re -from shutil import rmtree -import tempfile -import requests -import json -from packaging import version - -WORKING_DIR = os.environ["WORKSPACE"] - -VERSION_REGEX = r"(\s*)(version)(\s*)(=)(\s*)(['\"])(.*)(['\"])(.*)" -RELEASE_REGEX = r"(\s*)(release)(\s*)(=)(\s*)(['\"])(.*)(['\"])(.*)" - -USERNAME = "doc_builder_pulp_container" -HOSTNAME = "8.43.85.236" - -SITE_ROOT = "/var/www/docs.pulpproject.org/pulp_container/" - - -def make_directory_with_rsync(remote_paths_list): - """ - Ensure the remote directory path exists. - - :param remote_paths_list: The list of parameters. e.g. ['en', 'latest'] to be en/latest on the - remote. - :type remote_paths_list: a list of strings, with each string representing a directory. - """ - try: - tempdir_path = tempfile.mkdtemp() - cwd = os.getcwd() - os.chdir(tempdir_path) - os.makedirs(os.sep.join(remote_paths_list)) - remote_path_arg = "%s@%s:%s%s" % ( - USERNAME, - HOSTNAME, - SITE_ROOT, - remote_paths_list[0], - ) - local_path_arg = tempdir_path + os.sep + remote_paths_list[0] + os.sep - rsync_command = ["rsync", "-avzh", local_path_arg, remote_path_arg] - exit_code = subprocess.call(rsync_command) - if exit_code != 0: - raise RuntimeError("An error occurred while creating remote directories.") - finally: - rmtree(tempdir_path) - os.chdir(cwd) - - -def ensure_dir(target_dir, clean=True): - """ - Ensure that the directory specified exists and is empty. - - By default this will delete the directory if it already exists - - :param target_dir: The directory to process - :type target_dir: str - :param clean: Whether or not the directory should be removed and recreated - :type clean: bool - """ - if clean: - rmtree(target_dir, ignore_errors=True) - try: - os.makedirs(target_dir) - except OSError: - pass - - -def main(): - """ - Builds documentation using the 'make html' command and rsyncs to docs.pulpproject.org. - """ - parser = argparse.ArgumentParser() - parser.add_argument( - "--build-type", required=True, help="Build type: nightly, tag or changelog." - ) - parser.add_argument("--branch", required=True, help="Branch or tag name.") - opts = parser.parse_args() - - build_type = opts.build_type - - branch = opts.branch - - publish_at_root = False - - # rsync the docs - print("rsync the docs") - docs_directory = os.sep.join([WORKING_DIR, "docs"]) - local_path_arg = os.sep.join([docs_directory, "_build", "html"]) + os.sep - if build_type == "nightly": - # This is a nightly build - remote_path_arg = "%s@%s:%sen/%s/%s/" % ( - USERNAME, - HOSTNAME, - SITE_ROOT, - branch, - build_type, - ) - make_directory_with_rsync(["en", branch, build_type]) - rsync_command = ["rsync", "-avzh", "--delete", local_path_arg, remote_path_arg] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - elif build_type == "tag": - if (not re.search("[a-zA-Z]", branch) or "post" in branch) and len(branch.split(".")) > 2: - # Only publish docs at the root if this is the latest version - r = requests.get("https://pypi.org/pypi/pulp-container/json") - latest_version = version.parse(json.loads(r.text)["info"]["version"]) - docs_version = version.parse(branch) - # This is to mitigate delays on PyPI which doesn't update metadata in timely manner. - # It doesn't prevent incorrect docs being published at root if 2 releases are done close - # to each other, within PyPI delay. E.g. Release 3.11.0 an then 3.10.1 immediately - # after. - if docs_version >= latest_version: - publish_at_root = True - # Post releases should use the x.y.z part of the version string to form a path - if "post" in branch: - branch = ".".join(branch.split(".")[:-1]) - - # This is a GA build. - # publish to the root of docs.pulpproject.org - if publish_at_root: - version_components = branch.split(".") - x_y_version = "{}.{}".format(version_components[0], version_components[1]) - remote_path_arg = "%s@%s:%s" % (USERNAME, HOSTNAME, SITE_ROOT) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--exclude", - "en", - "--omit-dir-times", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - # publish to docs.pulpproject.org/en/3.y/ - make_directory_with_rsync(["en", x_y_version]) - remote_path_arg = "%s@%s:%sen/%s/" % ( - USERNAME, - HOSTNAME, - SITE_ROOT, - x_y_version, - ) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--omit-dir-times", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - # publish to docs.pulpproject.org/en/3.y.z/ - make_directory_with_rsync(["en", branch]) - remote_path_arg = "%s@%s:%sen/%s/" % (USERNAME, HOSTNAME, SITE_ROOT, branch) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--omit-dir-times", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - else: - # This is a pre-release - make_directory_with_rsync(["en", branch]) - remote_path_arg = "%s@%s:%sen/%s/%s/" % ( - USERNAME, - HOSTNAME, - SITE_ROOT, - branch, - build_type, - ) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--exclude", - "nightly", - "--exclude", - "testing", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - # publish to docs.pulpproject.org/en/3.y/ - version_components = branch.split(".") - x_y_version = "{}.{}".format(version_components[0], version_components[1]) - make_directory_with_rsync(["en", x_y_version]) - remote_path_arg = "%s@%s:%sen/%s/" % ( - USERNAME, - HOSTNAME, - SITE_ROOT, - x_y_version, - ) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--omit-dir-times", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - # publish to docs.pulpproject.org/en/3.y.z/ - make_directory_with_rsync(["en", branch]) - remote_path_arg = "%s@%s:%sen/%s/" % (USERNAME, HOSTNAME, SITE_ROOT, branch) - rsync_command = [ - "rsync", - "-avzh", - "--delete", - "--omit-dir-times", - local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - elif build_type == "changelog": - if branch != "main": - raise RuntimeError("Can only publish CHANGELOG from main") - # Publish the CHANGELOG from main branch at the root directory - remote_path_arg = "%s@%s:%s" % (USERNAME, HOSTNAME, SITE_ROOT) - changelog_local_path_arg = os.path.join(local_path_arg, "changes.html") - rsync_command = [ - "rsync", - "-vzh", - "--omit-dir-times", - changelog_local_path_arg, - remote_path_arg, - ] - exit_code = subprocess.call(rsync_command, cwd=docs_directory) - if exit_code != 0: - raise RuntimeError("An error occurred while pushing docs.") - else: - raise RuntimeError("Build type must be either 'nightly', 'tag' or 'changelog'.") - - -if __name__ == "__main__": - main() diff --git a/.github/workflows/scripts/install_python_client.sh b/.github/workflows/scripts/install_python_client.sh deleted file mode 100755 index e73865ff0..000000000 --- a/.github/workflows/scripts/install_python_client.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "container" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_container-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=container" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_container python "$VERSION" -else - ./generate.sh pulp_container python "$VERSION" -fi - -pushd pulp_container-client -python setup.py sdist bdist_wheel --python-tag py3 - -twine check "dist/pulp_container_client-$VERSION-py3-none-any.whl" -twine check "dist/pulp_container-client-$VERSION.tar.gz" - -cmd_prefix pip3 install "/root/pulp-openapi-generator/pulp_container-client/dist/pulp_container_client-${VERSION}-py3-none-any.whl" -tar cvf ../../pulp_container/container-python-client.tar ./dist - -find ./docs/* -exec sed -i 's/Back to README/Back to HOME/g' {} \; -find ./docs/* -exec sed -i 's/README//g' {} \; -cp README.md docs/index.md -sed -i 's/docs\///g' docs/index.md -find ./docs/* -exec sed -i 's/\.md//g' {} \; - -cat >> mkdocs.yml << DOCSYAML ---- -site_name: PulpContainer Client -site_description: Container bindings -site_author: Pulp Team -site_url: https://docs.pulpproject.org/pulp_container_client/ -repo_name: pulp/pulp_container -repo_url: https://github.com/pulp/pulp_container -theme: readthedocs -DOCSYAML - -# Building the bindings docs -mkdocs build - -# Pack the built site. -tar cvf ../../pulp_container/container-python-client-docs.tar ./site -popd -popd diff --git a/.github/workflows/scripts/install_ruby_client.sh b/.github/workflows/scripts/install_ruby_client.sh deleted file mode 100755 index 2fa3a0bf0..000000000 --- a/.github/workflows/scripts/install_ruby_client.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "container" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_container-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=container" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_container ruby "$VERSION" -else - ./generate.sh pulp_container ruby "$VERSION" -fi - -pushd pulp_container-client -gem build pulp_container_client -gem install --both "./pulp_container_client-$VERSION.gem" -tar cvf ../../pulp_container/container-ruby-client.tar "./pulp_container_client-$VERSION.gem" -popd -popd diff --git a/.github/workflows/scripts/post_docs_test.sh b/.github/workflows/scripts/post_docs_test.sh deleted file mode 100755 index d008aee9c..000000000 --- a/.github/workflows/scripts/post_docs_test.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -export BASE_ADDR=https://pulp.example.com:443 - -cd docs/_scripts/ -bash ./docs_check.sh diff --git a/.github/workflows/scripts/publish_docs.sh b/.github/workflows/scripts/publish_docs.sh deleted file mode 100755 index 281042405..000000000 --- a/.github/workflows/scripts/publish_docs.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_container' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -euv - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")/../../.." - -mkdir ~/.ssh -touch ~/.ssh/pulp-infra -chmod 600 ~/.ssh/pulp-infra -echo "$PULP_DOCS_KEY" > ~/.ssh/pulp-infra - -echo "docs.pulpproject.org,8.43.85.236 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGXG+8vjSQvnAkq33i0XWgpSrbco3rRqNZr0SfVeiqFI7RN/VznwXMioDDhc+hQtgVhd6TYBOrV07IMcKj+FAzg=" >> ~/.ssh/known_hosts -chmod 644 ~/.ssh/known_hosts - -export PYTHONUNBUFFERED=1 -export DJANGO_SETTINGS_MODULE=pulpcore.app.settings -export PULP_SETTINGS=$PWD/.ci/ansible/settings/settings.py -export WORKSPACE=$PWD - -# start the ssh agent -eval "$(ssh-agent -s)" -ssh-add ~/.ssh/pulp-infra - -python3 .github/workflows/scripts/docs-publisher.py --build-type "$1" --branch "$2" - -if [[ "$GITHUB_WORKFLOW" == "Container changelog update" ]]; then - # Do not build bindings docs on changelog update - exit -fi - -mkdir -p ../container-bindings -tar -xvf container-python-client-docs.tar --directory ../container-bindings -pushd ../container-bindings - -# publish to docs.pulpproject.org/pulp_container_client -rsync -avzh site/ doc_builder_pulp_container@docs.pulpproject.org:/var/www/docs.pulpproject.org/pulp_container_client/ - -# publish to docs.pulpproject.org/pulp_container_client/en/{release} -rsync -avzh site/ doc_builder_pulp_container@docs.pulpproject.org:/var/www/docs.pulpproject.org/pulp_container_client/en/"$2" -popd diff --git a/.github/workflows/scripts/script.sh b/.github/workflows/scripts/script.sh index f52edf7be..30e02cab4 100755 --- a/.github/workflows/scripts/script.sh +++ b/.github/workflows/scripts/script.sh @@ -16,7 +16,6 @@ cd "$(dirname "$(realpath -e "$0")")"/../../.. source .github/workflows/scripts/utils.sh export POST_SCRIPT=$PWD/.github/workflows/scripts/post_script.sh -export POST_DOCS_TEST=$PWD/.github/workflows/scripts/post_docs_test.sh export FUNC_TEST_SCRIPT=$PWD/.github/workflows/scripts/func_test_script.sh # Needed for both starting the service and building the docs. @@ -31,17 +30,7 @@ if [[ "$TEST" = "docs" ]]; then if [[ "$GITHUB_WORKFLOW" == "Container CI" ]]; then towncrier build --yes --version 4.0.0.ci fi - # Unified Docs Build pulp-docs build - # Legacy Docs Build - cd docs - make PULP_URL="$PULP_URL" diagrams html - tar -cvf docs.tar ./_build - cd .. - - if [ -f "$POST_DOCS_TEST" ]; then - source "$POST_DOCS_TEST" - fi exit fi diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 371631415..0fcc6f1e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -137,15 +137,6 @@ jobs: if-no-files-found: "error" retention-days: 5 overwrite: true - - name: Upload built docs - if: ${{ env.TEST == 'docs' }} - uses: actions/upload-artifact@v4 - with: - name: "docs.tar" - path: "pulp_container/docs/docs.tar" - if-no-files-found: "error" - retention-days: 5 - overwrite: true - name: "Logs" if: always() diff --git a/CHANGES/.TEMPLATE.rst b/CHANGES/.TEMPLATE.rst deleted file mode 100644 index 49c2305d7..000000000 --- a/CHANGES/.TEMPLATE.rst +++ /dev/null @@ -1,47 +0,0 @@ -{% if render_title %} -{% if versiondata.name %} -{{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }}) -{{ top_underline * ((versiondata.name + versiondata.version + versiondata.date)|length + 4)}} -{% else %} -{{ versiondata.version }} ({{ versiondata.date }}) -{{ top_underline * ((versiondata.version + versiondata.date)|length + 3)}} -{% endif %} -{% endif %} -{% for section, _ in sections.items() %} -{% set underline = underlines[0] %}{% if section %}{{section}} -{{ underline * section|length }}{% set underline = underlines[1] %} - -{% endif %} - -{% if sections[section] %} -{% for category, val in definitions.items() if category in sections[section]%} -{{ definitions[category]['name'] }} -{{ underline * definitions[category]['name']|length }} - -{% if definitions[category]['showcontent'] %} -{% for text, values in sections[section][category].items() %} -- {{ text }} - {{ values|join(',\n ') }} -{% endfor %} - -{% else %} -- {{ sections[section][category]['']|join(', ') }} - -{% endif %} -{% if sections[section][category]|length == 0 %} -No significant changes. - -{% else %} -{% endif %} - -{% endfor %} -{% else %} -No significant changes. - - -{% endif %} -{% endfor %} ----- - - - diff --git a/doc_requirements.txt b/doc_requirements.txt index f41b19a40..598d5f9b8 100644 --- a/doc_requirements.txt +++ b/doc_requirements.txt @@ -7,15 +7,4 @@ -r requirements.txt towncrier -# Legacy docs -plantuml -sphinx~=7.1.2 -sphinx-rtd-theme==1.3.0 -sphinxcontrib-jquery -sphinxcontrib-openapi -mistune<4.0.0 -Jinja2<3.2 - -# Unified docs pulp-docs @ git+https://github.com/pulp/pulp-docs@main -# Extra requirements diff --git a/docs/_scripts/base.sh b/docs/_scripts/base.sh deleted file mode 100755 index 744768a79..000000000 --- a/docs/_scripts/base.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -echo "Setting environment variables for default hostname/port for the API and the Content app" -BASE_ADDR=${BASE_ADDR:-http://localhost:24817} -REGISTRY_ADDR=${BASE_ADDR#*//} - -# Poll a Pulp task until it is finished. -wait_until_task_finished() { - echo "Polling the task until it has reached a final state." - local task_url=$1 - local timeout=10 - while [ "$timeout" -gt 0 ] - do - local response=$(http $task_url) - local state=$(jq -r .state <<< ${response}) - jq . <<< "${response}" || exit 1 - case ${state} in - failed|canceled) - echo "Task in final state: ${state}" - exit 1 - ;; - completed) - echo "$task_url complete." - break - ;; - *) - echo "Still waiting..." - sleep 2 - timeout=$(($timeout-1)) - ;; - esac - done -} diff --git a/docs/_scripts/build_containerfile.sh b/docs/_scripts/build_containerfile.sh deleted file mode 100644 index 0176541b6..000000000 --- a/docs/_scripts/build_containerfile.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task that will build a container image from a Containerfile." - -TASK_HREF=$(http --form POST :$REPO_HREF'build_image/' containerfile@./Containerfile \ -artifacts="{\"$ARTIFACT_HREF\": \"foo/bar/example.txt\"}" | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -echo "Set REPOVERSION_HREF from finished task." -REPOVERSION_HREF=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspecting RepositoryVersion." -http $BASE_ADDR$REPOVERSION_HREF diff --git a/docs/_scripts/cleanup_export.sh b/docs/_scripts/cleanup_export.sh deleted file mode 100644 index e0579089a..000000000 --- a/docs/_scripts/cleanup_export.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -# remove the repository and its content from the current filesystem -pulp container distribution destroy --name "test/fixture" -pulp orphan cleanup --protection-time 0 diff --git a/docs/_scripts/create_containerfile.sh b/docs/_scripts/create_containerfile.sh deleted file mode 100644 index ccd24b79c..000000000 --- a/docs/_scripts/create_containerfile.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a Containerfile that expects foo/bar/example.txt inside /pulp_working_directory." - -echo 'FROM centos:7 - -# Copy a file using COPY statement. Use the relative path specified in the 'artifacts' parameter. -COPY foo/bar/example.txt /inside-image.txt - -# Print the content of the file when the container starts -CMD ["cat", "/inside-image.txt"]' >> Containerfile \ No newline at end of file diff --git a/docs/_scripts/create_example.sh b/docs/_scripts/create_example.sh deleted file mode 100644 index a1df9c915..000000000 --- a/docs/_scripts/create_example.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a text file and upload it to Pulp" - -echo 'Hello world!' > example.txt - -ARTIFACT_HREF=$(http --form POST http://localhost/pulp/api/v3/artifacts/ \ - file@./example.txt \ - | jq -r '.pulp_href') - -echo "Inspecting new artifact." -http $BASE_ADDR$ARTIFACT_HREF diff --git a/docs/_scripts/distribution.sh b/docs/_scripts/distribution.sh deleted file mode 100755 index ae09e17ed..000000000 --- a/docs/_scripts/distribution.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -DIST_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) -DIST_BASE_PATH='test' - -# Distributions are created asynchronously. -echo "Creating distribution \ - (name=$DIST_NAME, base_path=$DIST_BASE_PATH repository=$REPO_HREF)." -TASK_HREF=$(http POST $BASE_ADDR/pulp/api/v3/distributions/container/container/ \ - name=$DIST_NAME \ - base_path=$DIST_BASE_PATH \ - repository=$REPO_HREF | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -echo "Setting DISTRIBUTION_HREF from the completed task." -# DISTRIBUTION_HREF is the pulp-api HREF, not the content app href -DISTRIBUTION_HREF=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspecting Distribution." -http $BASE_ADDR$DISTRIBUTION_HREF diff --git a/docs/_scripts/docs_check.sh b/docs/_scripts/docs_check.sh deleted file mode 100755 index 097aa9a17..000000000 --- a/docs/_scripts/docs_check.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -set -euv - -# This script will execute the component scripts and ensure that the documented examples -# work as expected. - -# From the _scripts directory, run with `source docs_check_sync_publish.sh` (source to preserve the -# environment variables) -source base.sh - -# Check Sync -source repo.sh -source remote.sh -source sync.sh -source distribution.sh -source download_after_sync.sh - -# Check add/remove -source second_repo.sh -source recursive_add_tag.sh -source recursive_remove_tag.sh - -# Check Copy -source second_repo.sh -source manifest_copy.sh - -source second_repo.sh -source tag_copy.sh - -# Check tag/untag -source image_tagging.sh -source download_after_tagging.sh -source image_untagging.sh - -# Check import/export -source export_repository.sh -source cleanup_export.sh -source import_repository.sh diff --git a/docs/_scripts/download_after_sync.sh b/docs/_scripts/download_after_sync.sh deleted file mode 100755 index 0b3c4e727..000000000 --- a/docs/_scripts/download_after_sync.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -CONTAINER_TAG='manifest_a' - -echo "Setting REGISTRY_PATH, which can be used directly with the Docker Client." -REGISTRY_PATH=$(http $BASE_ADDR$DISTRIBUTION_HREF | jq -r '.registry_path') - -echo "Next we pull and run the image from pulp" -echo "$REGISTRY_PATH:$CONTAINER_TAG" -sudo docker login -u admin -p password $REGISTRY_PATH -sudo docker run $REGISTRY_PATH:$CONTAINER_TAG diff --git a/docs/_scripts/download_after_tagging.sh b/docs/_scripts/download_after_tagging.sh deleted file mode 100644 index 22310747e..000000000 --- a/docs/_scripts/download_after_tagging.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' - -DIST_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) -DIST_BASE_PATH='tag' - -echo "Publishing the latest repository." -TASK_URL=$(http POST $BASE_ADDR/pulp/api/v3/distributions/container/container/ \ - name=$DIST_NAME base_path=$DIST_BASE_PATH repository=$REPO_HREF \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -DISTRIBUTION_HREF=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | first') -REGISTRY_PATH=$(http $BASE_ADDR$DISTRIBUTION_HREF \ - | jq -r '.registry_path') - -echo "Running ${REGISTRY_PATH}:${TAG_NAME}." -sudo docker login -u admin -p password $REGISTRY_PATH -sudo docker run $REGISTRY_PATH:$TAG_NAME diff --git a/docs/_scripts/export_repository.sh b/docs/_scripts/export_repository.sh deleted file mode 100644 index 21703b81c..000000000 --- a/docs/_scripts/export_repository.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -podman pull ghcr.io/pulp/test-fixture-1:manifest_a - -# push a tagged image to the registry -podman login ${REGISTRY_ADDR} -u admin -p password --tls-verify=false -podman tag ghcr.io/pulp/test-fixture-1:manifest_a \ - ${REGISTRY_ADDR}/test/fixture:manifest_a -podman push ${REGISTRY_ADDR}/test/fixture:manifest_a --tls-verify=false - -# a repository of the push type is automatically created -REPOSITORY_HREF=$(pulp container repository -t push show \ - --name "test/fixture" | jq -r ".pulp_href") - -# export the repository to the directory '/tmp/exports/test-fixture' -EXPORTER_HREF=$(http ${BASE_ADDR}/pulp/api/v3/exporters/core/pulp/ \ - name=both repositories:="[\"${REPOSITORY_HREF}\"]" \ - path=/tmp/exports/test-fixture | jq -r ".pulp_href") -TASK_HREF=$(http POST ${BASE_ADDR}${EXPORTER_HREF}exports/ | jq -r ".task") -wait_until_task_finished ${BASE_ADDR}${TASK_HREF} diff --git a/docs/_scripts/image_tagging.sh b/docs/_scripts/image_tagging.sh deleted file mode 100644 index 40f38a767..000000000 --- a/docs/_scripts/image_tagging.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' -MANIFEST_DIGEST=$(http $BASE_ADDR'/pulp/api/v3/content/container/manifests/?repository_version='$REPOVERSION_HREF \ - | jq -r '.results | first | .digest') - -echo "Tagging the manifest." -TASK_URL=$(http POST $BASE_ADDR$REPO_HREF'tag/' tag=$TAG_NAME digest=$MANIFEST_DIGEST \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -echo "Getting a reference to a newly created tag." -CREATED_TAG=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | .[] | select(test("content"))') - -echo "Display properties of the created tag." -http $BASE_ADDR$CREATED_TAG diff --git a/docs/_scripts/image_untagging.sh b/docs/_scripts/image_untagging.sh deleted file mode 100644 index e5f537d31..000000000 --- a/docs/_scripts/image_untagging.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -TAG_NAME='custom_tag' - -echo "Untagging a manifest which is labeled with ${TAG_NAME}" -TASK_URL=$(http POST $BASE_ADDR$REPO_HREF'untag/' tag=$TAG_NAME \ - | jq -r '.task') - -wait_until_task_finished $BASE_ADDR$TASK_URL - -echo "Getting a reference to all removed tags." -REPO_VERSION=$(http $BASE_ADDR$TASK_URL \ - | jq -r '.created_resources | first') -REMOVED_TAGS=$(http $BASE_ADDR$REPO_VERSION \ - | jq -r '.content_summary | .removed | ."container.tag" | .href') - -echo "List removed tags from the latest repository version." -http $BASE_ADDR$REMOVED_TAGS diff --git a/docs/_scripts/import_repository.sh b/docs/_scripts/import_repository.sh deleted file mode 100644 index 306293e0e..000000000 --- a/docs/_scripts/import_repository.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# create a repository with the same name as the exported one -http ${BASE_ADDR}/pulp/api/v3/repositories/container/container/ \ - name="test/fixture" | jq -r ".pulp_href" - -# import the exported repository stored in '/tmp/exports/test-fixture' -IMPORTER_HREF=$(http ${BASE_ADDR}/pulp/api/v3/importers/core/pulp/ \ - name="test/fixture" | jq -r ".pulp_href") -EXPORTED_REPO_PATH=$(find "/tmp/exports/test-fixture" -type f -name \ - "*.tar.gz" | head -n 1) -GROUP_HREF=$(http ${BASE_ADDR}${IMPORTER_HREF}imports/ \ - path=${EXPORTED_REPO_PATH} | jq -r ".task_group") -echo ${BASE_ADDR}${GROUP_HREF} diff --git a/docs/_scripts/manifest_copy.sh b/docs/_scripts/manifest_copy.sh deleted file mode 100755 index 92ff2bda9..000000000 --- a/docs/_scripts/manifest_copy.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to copy all manifests from source to destination repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'copy_manifests/' \ - source_repository=$REPO_HREF \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -MANIFEST_COPY_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$MANIFEST_COPY_VERSION diff --git a/docs/_scripts/recursive_add_tag.sh b/docs/_scripts/recursive_add_tag.sh deleted file mode 100755 index 2794a2f4d..000000000 --- a/docs/_scripts/recursive_add_tag.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -echo "Retrieve the href of Tag manifest_a in the synced repository." -TAG_HREF=$(http $BASE_ADDR'/pulp/api/v3/content/container/tags/?repository_version='$REPOVERSION_HREF'&name=manifest_a' \ - | jq -r '.results | first | .pulp_href') - -echo "Create a task to recursively add a tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'add/' \ - content_units:="[\"$TAG_HREF\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -ADDED_VERSION=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$ADDED_VERSION diff --git a/docs/_scripts/recursive_remove_tag.sh b/docs/_scripts/recursive_remove_tag.sh deleted file mode 100755 index 3d39f6e48..000000000 --- a/docs/_scripts/recursive_remove_tag.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to recursively remove the same tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'remove/' \ - content_units:="[\"$TAG_HREF\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -REMOVED_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$REMOVED_VERSION diff --git a/docs/_scripts/remote.sh b/docs/_scripts/remote.sh deleted file mode 100755 index 37eb3b37f..000000000 --- a/docs/_scripts/remote.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -REMOTE_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Creating $REMOTE_NAME remote that points to an external source of container images." -REMOTE_HREF=$(http POST $BASE_ADDR/pulp/api/v3/remotes/container/container/ \ - name=$REMOTE_NAME \ - url='https://registry-1.docker.io' \ - upstream_name='pulp/test-fixture-1' | jq -r '.pulp_href') - -echo "Inspecting new Remote." -http $BASE_ADDR$REMOTE_HREF diff --git a/docs/_scripts/repo.sh b/docs/_scripts/repo.sh deleted file mode 100755 index 19140cb31..000000000 --- a/docs/_scripts/repo.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -REPO_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Creating a new repository named $REPO_NAME." -REPO_HREF=$(http POST $BASE_ADDR/pulp/api/v3/repositories/container/container/ name=$REPO_NAME \ - | jq -r '.pulp_href') - -echo "Inspecting repository." -http $BASE_ADDR$REPO_HREF diff --git a/docs/_scripts/second_repo.sh b/docs/_scripts/second_repo.sh deleted file mode 100755 index a34c44a49..000000000 --- a/docs/_scripts/second_repo.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -DEST_REPO_NAME=$(head /dev/urandom | tr -dc a-z | head -c5) - -echo "Create a second repository so we can add content to it." -SECOND_REPO_HREF=$(http POST $BASE_ADDR/pulp/api/v3/repositories/container/container/ name=$DEST_REPO_NAME \ - | jq -r '.pulp_href') - -echo "Inspect repository." -http $BASE_ADDR$SECOND_REPO_HREF diff --git a/docs/_scripts/sync.sh b/docs/_scripts/sync.sh deleted file mode 100755 index 9ca91fc7f..000000000 --- a/docs/_scripts/sync.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to sync the repository using the remote." -TASK_HREF=$(http POST $BASE_ADDR$REPO_HREF'sync/' remote=$REMOTE_HREF mirror=False \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -echo "Set REPOVERSION_HREF from finished task." -REPOVERSION_HREF=$(http $BASE_ADDR$TASK_HREF| jq -r '.created_resources | first') - -echo "Inspecting RepositoryVersion." -http $BASE_ADDR$REPOVERSION_HREF diff --git a/docs/_scripts/tag_copy.sh b/docs/_scripts/tag_copy.sh deleted file mode 100755 index fdf094eb2..000000000 --- a/docs/_scripts/tag_copy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -echo "Create a task to copy a tag to the repo." -TASK_HREF=$(http POST $BASE_ADDR$SECOND_REPO_HREF'copy_tags/' \ - source_repository=$REPO_HREF \ - names:="[\"manifest_a\"]" \ - | jq -r '.task') - -# Poll the task (here we use a function defined in docs/_scripts/base.sh) -wait_until_task_finished $BASE_ADDR$TASK_HREF - -# After the task is complete, it gives us a new repository version -TAG_COPY_VERSION=$(http $BASE_ADDR$TASK_HREF | jq -r '.created_resources | first') - -echo "Inspect RepositoryVersion." -http $BASE_ADDR$TAG_COPY_VERSION diff --git a/docs/template_gitref b/docs/template_gitref index 3d3d9afe4..7085211f4 100644 --- a/docs/template_gitref +++ b/docs/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-349-g9fe470c diff --git a/template_config.yml b/template_config.yml index cff8021ed..5d5bcb605 100644 --- a/template_config.yml +++ b/template_config.yml @@ -1,7 +1,7 @@ # This config represents the latest values used when running the plugin-template. Any settings that # were not present before running plugin-template have been added with their default values. -# generated with plugin_template@2021.08.26-347-gc4a2504 +# generated with plugin_template@2021.08.26-349-g9fe470c api_root: /pulp/ black: true @@ -23,7 +23,6 @@ disabled_redis_runners: [] doc_requirements_from_pulpcore: false docker_fixtures: false docs_test: true -extra_docs_requirements: [] flake8: true flake8_ignore: [] github_org: pulp @@ -42,7 +41,6 @@ plugins: name: pulp_container post_job_template: null pre_job_template: null -publish_docs_to_pulpprojectdotorg: true pulp_env: {} pulp_env_azure: {} pulp_env_gcp: {} @@ -87,6 +85,4 @@ test_performance: false test_reroute: true test_s3: true use_issue_template: true -use_legacy_docs: true -use_unified_docs: true