mirror of https://github.com/docker/docs.git
ci: add lab branch to publish workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
2e3be64290
commit
85f13ecf5d
|
@ -3,6 +3,7 @@ name: publish
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- lab
|
||||||
- master
|
- master
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
@ -26,6 +27,10 @@ jobs:
|
||||||
DOCS_S3_CONFIG="_website-config-docs.json"
|
DOCS_S3_CONFIG="_website-config-docs.json"
|
||||||
DOCS_LAMBDA_FUNCTION_CACHE="arn:aws:lambda:us-east-1:710015040892:function:docs-cache-invalidator"
|
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/"
|
DOCS_SLACK_MSG="Successfully published docs. https://docs.docker.com/"
|
||||||
|
elif [ "${{ github.ref }}" = "refs/heads/lab" ]; then
|
||||||
|
DOCS_S3_BUCKET=""
|
||||||
|
DOCS_LAMBDA_FUNCTION_CACHE=""
|
||||||
|
DOCS_S3_CONFIG="_website-config-docs-lab.json"
|
||||||
fi
|
fi
|
||||||
echo "JEKYLL_ENV=$JEKYLL_ENV" >> $GITHUB_ENV
|
echo "JEKYLL_ENV=$JEKYLL_ENV" >> $GITHUB_ENV
|
||||||
echo "DOCS_AWS_REGION=$DOCS_AWS_REGION" >> $GITHUB_ENV
|
echo "DOCS_AWS_REGION=$DOCS_AWS_REGION" >> $GITHUB_ENV
|
||||||
|
@ -69,6 +74,7 @@ jobs:
|
||||||
AWS_S3_CONFIG: ${{ env.DOCS_S3_CONFIG }}
|
AWS_S3_CONFIG: ${{ env.DOCS_S3_CONFIG }}
|
||||||
-
|
-
|
||||||
name: Invalidate docs website cache
|
name: Invalidate docs website cache
|
||||||
|
if: ${{ env.DOCS_LAMBDA_FUNCTION_CACHE != '' }}
|
||||||
uses: docker/bake-action@v2
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
targets: aws-lambda-invoke
|
targets: aws-lambda-invoke
|
||||||
|
@ -81,5 +87,6 @@ jobs:
|
||||||
AWS_LAMBDA_FUNCTION: ${{ env.DOCS_LAMBDA_FUNCTION_CACHE }}
|
AWS_LAMBDA_FUNCTION: ${{ env.DOCS_LAMBDA_FUNCTION_CACHE }}
|
||||||
-
|
-
|
||||||
name: Send Slack notification
|
name: Send Slack notification
|
||||||
|
if: ${{ env.DOCS_SLACK_MSG != '' }}
|
||||||
run: |
|
run: |
|
||||||
curl -X POST -H 'Content-type: application/json' --data '{"text":"${{ env.DOCS_SLACK_MSG }}"}' ${{ secrets.SLACK_WEBHOOK }}
|
curl -X POST -H 'Content-type: application/json' --data '{"text":"${{ env.DOCS_SLACK_MSG }}"}' ${{ secrets.SLACK_WEBHOOK }}
|
||||||
|
|
|
@ -0,0 +1,388 @@
|
||||||
|
{
|
||||||
|
"ErrorDocument": {
|
||||||
|
"Key": "404.html"
|
||||||
|
},
|
||||||
|
"IndexDocument": {
|
||||||
|
"Suffix": "index.html"
|
||||||
|
},
|
||||||
|
"RedirectAllRequestsTo": null,
|
||||||
|
"RoutingRules": [
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.4/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.5/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.6/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.7/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.8/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.9/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.10/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.11/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.12/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v1.13/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v17.03/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v17.09/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v17.12/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/licensing/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/get-support/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/cluster/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/supported-platforms/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/ucp/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/dtr/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "compliance/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "datacenter/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v18.09/ee/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v18.03/ee/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v17.06/enterprise/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/docker-ee/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "ee/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": null,
|
||||||
|
"ReplaceKeyWith": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v17.06/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v18.03/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"HttpErrorCodeReturnedEquals": null,
|
||||||
|
"KeyPrefixEquals": "v18.09/"
|
||||||
|
},
|
||||||
|
"Redirect": {
|
||||||
|
"HostName": "docs-lab.docker.com",
|
||||||
|
"HttpRedirectCode": null,
|
||||||
|
"Protocol": "https",
|
||||||
|
"ReplaceKeyPrefixWith": "",
|
||||||
|
"ReplaceKeyWith": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue