mirror of https://github.com/docker/docs.git
updated gha workflows
This commit is contained in:
parent
8f77e55567
commit
543abbe669
|
@ -4,7 +4,7 @@ on:
|
|||
push:
|
||||
# needs push event on default branch otherwise cache is evicted when pull request is merged
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
|
|
|
@ -5,7 +5,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- lab
|
||||
- master
|
||||
- main
|
||||
- published
|
||||
|
||||
# these permissions are needed to interact with GitHub's OIDC Token endpoint.
|
||||
|
@ -22,14 +22,14 @@ jobs:
|
|||
run: |
|
||||
JEKYLL_ENV=development
|
||||
DOCS_AWS_REGION=us-east-1
|
||||
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
|
||||
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
|
||||
DOCS_URL="https://docs-stage.docker.com"
|
||||
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_CONFIG="s3-config.json"
|
||||
DOCS_CLOUDFRONT_ID="E1R7CSW3F0X4H8"
|
||||
DOCS_LAMBDA_FUNCTION_REDIRECTS="DockerDocsRedirectFunction-stage"
|
||||
DOCS_SLACK_MSG="Successfully deployed docs-stage from master branch. $DOCS_URL"
|
||||
DOCS_SLACK_MSG="Successfully deployed docs-stage from main branch. $DOCS_URL"
|
||||
elif [ "${{ github.ref }}" = "refs/heads/published" ]; then
|
||||
JEKYLL_ENV=production
|
||||
DOCS_URL="https://docs.docker.com"
|
||||
|
|
Loading…
Reference in New Issue