diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 83476a9021..bd20a98e5a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,14 +31,14 @@ jobs: DOCS_LAMBDA_FUNCTION_REDIRECTS="DockerDocsRedirectFunction-stage" DOCS_SLACK_MSG="Successfully deployed docs-stage from master branch. $DOCS_URL" elif [ "${{ github.ref }}" = "refs/heads/published" ]; then - #JEKYLL_ENV=production # TODO: uncomment when new env switched and ready - DOCS_URL="https://docs2.docker.com" # TODO: change this to https://docs.docker.com when new env switched and ready + JEKYLL_ENV=production + DOCS_URL="https://docs.docker.com" DOCS_AWS_IAM_ROLE="arn:aws:iam::710015040892:role/prod-docs-docs.docker.com-20220818202218674300000001" DOCS_S3_BUCKET="prod-docs-docs.docker.com" DOCS_S3_CONFIG="s3-config.json" DOCS_CLOUDFRONT_ID="E228TTN20HNU8F" DOCS_LAMBDA_FUNCTION_REDIRECTS="DockerDocsRedirectFunction-prod" - DOCS_SLACK_MSG="Successfully deployed docs2 from published branch. $DOCS_URL" # TODO: change to "deployed docs" when new env switched and ready + DOCS_SLACK_MSG="Successfully deployed docs from published branch. $DOCS_URL" elif [ "${{ github.ref }}" = "refs/heads/lab" ]; then DOCS_URL="https://docs-labs.docker.com" DOCS_AWS_IAM_ROLE="arn:aws:iam::710015040892:role/labs-docs-docs.docker.com-20220818202218402500000001" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 0a6eb08d52..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: publish - -on: - workflow_dispatch: - push: - branches: - - published - -jobs: - publish: - runs-on: ubuntu-20.04 - steps: - - - name: Prepare - run: | - JEKYLL_ENV=development - DOCS_AWS_REGION=us-east-1 - if [ "${{ github.ref }}" = "refs/heads/published" ]; then - JEKYLL_ENV=production - DOCS_URL="https://docs.docker.com" - DOCS_S3_BUCKET="docs.docker.com-us-east-1" - DOCS_S3_CONFIG="_website-config-docs.json" - DOCS_LAMBDA_FUNCTION_CACHE="arn:aws:lambda:us-east-1:710015040892:function:docs-cache-invalidator" - DOCS_SLACK_MSG="Successfully published docs. https://docs.docker.com/" - else - echo >&2 "ERROR: unknown branch ${{ github.ref }}" - exit 1 - fi - echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" >> $GITHUB_ENV - echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV - echo "JEKYLL_ENV=$JEKYLL_ENV" >> $GITHUB_ENV - echo "DOCS_URL=$DOCS_URL" >> $GITHUB_ENV - echo "DOCS_AWS_REGION=$DOCS_AWS_REGION" >> $GITHUB_ENV - echo "DOCS_S3_BUCKET=$DOCS_S3_BUCKET" >> $GITHUB_ENV - echo "DOCS_S3_CONFIG=$DOCS_S3_CONFIG" >> $GITHUB_ENV - echo "DOCS_LAMBDA_FUNCTION_CACHE=$DOCS_LAMBDA_FUNCTION_CACHE" >> $GITHUB_ENV - echo "DOCS_SLACK_MSG=$DOCS_SLACK_MSG" >> $GITHUB_ENV - - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build website - uses: docker/bake-action@v2 - with: - targets: release - set: | - *.cache-from=type=gha,scope=publish-${{ env.BRANCH_NAME }} - *.cache-to=type=gha,scope=publish-${{ env.BRANCH_NAME }},mode=max - - - name: Upload files to S3 bucket - run: | - aws --region ${{ env.DOCS_AWS_REGION }} s3 sync --acl public-read _site s3://${{ env.DOCS_S3_BUCKET }}/ --delete - - - name: Update S3 config - uses: docker/bake-action@v2 - with: - targets: aws-s3-update-config - set: | - *.cache-from=type=gha,scope=releaser - env: - AWS_REGION: ${{ env.DOCS_AWS_REGION }} - AWS_S3_BUCKET: ${{ env.DOCS_S3_BUCKET }} - AWS_S3_CONFIG: ${{ env.DOCS_S3_CONFIG }} - - - name: Invalidate docs website cache - if: ${{ env.DOCS_LAMBDA_FUNCTION_CACHE != '' }} - uses: docker/bake-action@v2 - with: - targets: aws-lambda-invoke - set: | - *.cache-from=type=gha,scope=releaser - env: - AWS_REGION: ${{ env.DOCS_AWS_REGION }} - AWS_LAMBDA_FUNCTION: ${{ env.DOCS_LAMBDA_FUNCTION_CACHE }} - - - name: Send Slack notification - if: ${{ env.DOCS_SLACK_MSG != '' }} - run: | - curl -X POST -H 'Content-type: application/json' --data '{"text":"${{ env.DOCS_SLACK_MSG }}"}' ${{ secrets.SLACK_WEBHOOK }} diff --git a/_releaser/_website-config-docs-stage.json b/_releaser/_website-config-docs-stage.json deleted file mode 100644 index 9208674279..0000000000 --- a/_releaser/_website-config-docs-stage.json +++ /dev/null @@ -1,388 +0,0 @@ -{ - "ErrorDocument": { - "Key": "404.html" - }, - "IndexDocument": { - "Suffix": "index.html" - }, - "RedirectAllRequestsTo": null, - "RoutingRules": [ - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.4/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.5/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.6/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.7/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.8/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.9/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.10/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.11/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.12/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.13/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.03/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.09/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.12/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/licensing/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/get-support/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/cluster/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/supported-platforms/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/ucp/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/dtr/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "compliance/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "datacenter/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.09/ee/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.03/ee/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.06/enterprise/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/docker-ee/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.06/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.03/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.09/" - }, - "Redirect": { - "HostName": "docs-stage.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - } - ] -} diff --git a/_releaser/_website-config-docs.json b/_releaser/_website-config-docs.json deleted file mode 100644 index 1cbf193010..0000000000 --- a/_releaser/_website-config-docs.json +++ /dev/null @@ -1,388 +0,0 @@ -{ - "ErrorDocument": { - "Key": "404.html" - }, - "IndexDocument": { - "Suffix": "index.html" - }, - "RedirectAllRequestsTo": null, - "RoutingRules": [ - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.4/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.5/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.6/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.7/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.8/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.9/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.10/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.11/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.12/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v1.13/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.03/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.09/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.12/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/licensing/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/get-support/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/cluster/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/supported-platforms/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/ucp/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/dtr/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "compliance/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "datacenter/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.09/ee/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.03/ee/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.06/enterprise/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/docker-ee/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "ee/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": null, - "ReplaceKeyWith": "" - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v17.06/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.03/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - }, - { - "Condition": { - "HttpErrorCodeReturnedEquals": null, - "KeyPrefixEquals": "v18.09/" - }, - "Redirect": { - "HostName": "docs.docker.com", - "HttpRedirectCode": null, - "Protocol": "https", - "ReplaceKeyPrefixWith": "", - "ReplaceKeyWith": null - } - } - ] -}