mirror of https://github.com/docker/docs.git
ci: check cloudfront config
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
9ee4e85c70
commit
db6966c59d
|
@ -15,8 +15,30 @@ permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
releaser:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Build
|
||||||
|
uses: docker/bake-action@v5
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
docker-bake.hcl
|
||||||
|
targets: releaser-build
|
||||||
|
set: |
|
||||||
|
*.cache-from=type=gha,scope=releaser
|
||||||
|
*.cache-to=type=gha,scope=releaser,mode=max
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
needs:
|
||||||
|
- releaser
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
@ -34,6 +56,16 @@ jobs:
|
||||||
set: |
|
set: |
|
||||||
*.cache-from=type=gha,scope=build
|
*.cache-from=type=gha,scope=build
|
||||||
*.cache-to=type=gha,scope=build,mode=max
|
*.cache-to=type=gha,scope=build,mode=max
|
||||||
|
-
|
||||||
|
name: Check Cloudfront config
|
||||||
|
uses: docker/bake-action@v5
|
||||||
|
with:
|
||||||
|
targets: aws-cloudfront-update
|
||||||
|
env:
|
||||||
|
DRY_RUN: true
|
||||||
|
AWS_REGION: us-east-1
|
||||||
|
AWS_CLOUDFRONT_ID: 0123456789ABCD
|
||||||
|
AWS_LAMBDA_FUNCTION: DockerDocsRedirectFunction-dummy
|
||||||
|
|
||||||
vale:
|
vale:
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
@ -76,25 +108,3 @@ jobs:
|
||||||
*.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max
|
*.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max
|
||||||
*.cache-from=type=gha,scope=validate-${{ matrix.target }}
|
*.cache-from=type=gha,scope=validate-${{ matrix.target }}
|
||||||
*.cache-from=type=gha,scope=build
|
*.cache-from=type=gha,scope=build
|
||||||
|
|
||||||
# build-releaser builds the _releaser used for AWS deployment in publish workflow.
|
|
||||||
# It's just to be sure it builds correctly.
|
|
||||||
build-releaser:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/bake-action@v5
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
docker-bake.hcl
|
|
||||||
targets: releaser-build
|
|
||||||
set: |
|
|
||||||
*.cache-from=type=gha,scope=releaser
|
|
||||||
*.cache-to=type=gha,scope=releaser,mode=max
|
|
||||||
|
|
Loading…
Reference in New Issue