mirror of https://github.com/docker/docs.git
Merge pull request #15443 from crazy-max/switch-stage
ci: switch stage2 to stage environment
This commit is contained in:
commit
fca20e05da
|
@ -23,13 +23,13 @@ jobs:
|
||||||
JEKYLL_ENV=development
|
JEKYLL_ENV=development
|
||||||
DOCS_AWS_REGION=us-east-1
|
DOCS_AWS_REGION=us-east-1
|
||||||
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
||||||
DOCS_URL="https://docs-stage2.docker.com" # TODO: change this to https://docs-stage.docker.com when new env switched and ready
|
DOCS_URL="https://docs-stage.docker.com"
|
||||||
DOCS_AWS_IAM_ROLE="arn:aws:iam::710015040892:role/stage-docs-docs.docker.com-20220818202135984800000001"
|
DOCS_AWS_IAM_ROLE="arn:aws:iam::710015040892:role/stage-docs-docs.docker.com-20220818202135984800000001"
|
||||||
DOCS_S3_BUCKET="stage-docs-docs.docker.com"
|
DOCS_S3_BUCKET="stage-docs-docs.docker.com"
|
||||||
DOCS_S3_CONFIG="s3-config.json"
|
DOCS_S3_CONFIG="s3-config.json"
|
||||||
DOCS_CLOUDFRONT_ID="E1R7CSW3F0X4H8"
|
DOCS_CLOUDFRONT_ID="E1R7CSW3F0X4H8"
|
||||||
DOCS_LAMBDA_FUNCTION_REDIRECTS="DockerDocsRedirectFunction-stage"
|
DOCS_LAMBDA_FUNCTION_REDIRECTS="DockerDocsRedirectFunction-stage"
|
||||||
DOCS_SLACK_MSG="Successfully deployed docs-stage2 from master branch. $DOCS_URL" # TODO: change to "deployed docs-stage" when new env switched and ready
|
DOCS_SLACK_MSG="Successfully deployed docs-stage from master branch. $DOCS_URL"
|
||||||
elif [ "${{ github.ref }}" = "refs/heads/published" ]; then
|
elif [ "${{ github.ref }}" = "refs/heads/published" ]; then
|
||||||
#JEKYLL_ENV=production # TODO: uncomment when new env switched and ready
|
#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
|
DOCS_URL="https://docs2.docker.com" # TODO: change this to https://docs.docker.com when new env switched and ready
|
||||||
|
|
|
@ -4,7 +4,6 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
|
||||||
- published
|
- published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -16,13 +15,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
JEKYLL_ENV=development
|
JEKYLL_ENV=development
|
||||||
DOCS_AWS_REGION=us-east-1
|
DOCS_AWS_REGION=us-east-1
|
||||||
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
if [ "${{ github.ref }}" = "refs/heads/published" ]; then
|
||||||
DOCS_URL="https://docs-stage.docker.com"
|
|
||||||
DOCS_S3_BUCKET="docs.docker.com-stage-us-east-1"
|
|
||||||
DOCS_S3_CONFIG="_website-config-docs-stage.json"
|
|
||||||
DOCS_LAMBDA_FUNCTION_CACHE="arn:aws:lambda:us-east-1:710015040892:function:docs-stage-cache-invalidator"
|
|
||||||
DOCS_SLACK_MSG="Successfully promoted docs-stage from master. https://docs-stage.docker.com/"
|
|
||||||
elif [ "${{ github.ref }}" = "refs/heads/published" ]; then
|
|
||||||
JEKYLL_ENV=production
|
JEKYLL_ENV=production
|
||||||
DOCS_URL="https://docs.docker.com"
|
DOCS_URL="https://docs.docker.com"
|
||||||
DOCS_S3_BUCKET="docs.docker.com-us-east-1"
|
DOCS_S3_BUCKET="docs.docker.com-us-east-1"
|
||||||
|
|
Loading…
Reference in New Issue