mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Merge pull request #18433 from dvdksn/fix-validate-upstream
ci: fix validate-upstream workflow
This commit is contained in:
17
.github/workflows/validate-upstream.yml
vendored
17
.github/workflows/validate-upstream.yml
vendored
@@ -1,5 +1,5 @@
|
||||
# reusable workflow to validate docs from upstream repository for which pages are remotely fetched
|
||||
# - repo: upstream repository (e.g., https://github.com/docker/buildx)
|
||||
# - module-name: the name of the module, without github.com prefix (e.g., docker/buildx)
|
||||
# - data-files-id: id of the artifact (using actions/upload-artifact) containing the YAML data files to validate (optional)
|
||||
# - data-files-folder: folder in _data containing the files to download and copy to (e.g., buildx)
|
||||
name: validate-upstream
|
||||
@@ -7,6 +7,9 @@ name: validate-upstream
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
module-name:
|
||||
required: true
|
||||
type: string
|
||||
data-files-id:
|
||||
required: false
|
||||
type: string
|
||||
@@ -69,16 +72,18 @@ jobs:
|
||||
}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Validate
|
||||
uses: docker/bake-action@v3
|
||||
uses: docker/bake-action@v4
|
||||
with:
|
||||
files: |
|
||||
docker-bake.hcl
|
||||
targets: validate
|
||||
targets: validate-upstream
|
||||
set: |
|
||||
*.args.REPO="github.com/${{ github.repository }}"
|
||||
*.args.HUGO_MODULE_REPLACEMENTS="github.com/${{ github.repository }} -> github.com/${{ github.repository}} ${{ github.ref }}"
|
||||
*.cache-from=type=gha,scope=docs-upstream
|
||||
*.cache-to=type=gha,scope=docs-upstream,mode=max
|
||||
env:
|
||||
UPSTREAM_MODULE_NAME: ${{ inputs.module-name }}
|
||||
UPSTREAM_REPO: ${{ github.repository }}
|
||||
UPSTREAM_COMMIT: ${{ github.sha }}
|
||||
|
||||
Reference in New Issue
Block a user