updated gha workflows

This commit is contained in:
David Karlsson 2022-10-19 16:18:18 +02:00
parent 8f77e55567
commit 543abbe669
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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"