mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.7 to 7.0.8.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](dd2324fc52...271a8d0340
)
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
92 lines
2.8 KiB
YAML
92 lines
2.8 KiB
YAML
name: docs-release
|
|
|
|
# Default to 'contents: read', which grants actions to read commits.
|
|
#
|
|
# If any permission is set, any permission not included in the list is
|
|
# implicitly set to "none".
|
|
#
|
|
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Git tag'
|
|
required: true
|
|
release:
|
|
types:
|
|
- released
|
|
|
|
env:
|
|
SETUP_BUILDX_VERSION: "edge"
|
|
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
|
|
|
|
jobs:
|
|
open-pr:
|
|
runs-on: ubuntu-24.04
|
|
if: ${{ (github.event.release.prerelease != true || github.event.inputs.tag != '') && github.repository == 'docker/buildx' }}
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
-
|
|
name: Checkout docs repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GHPAT_DOCS_DISPATCH }}
|
|
repository: docker/docs
|
|
ref: main
|
|
-
|
|
name: Prepare
|
|
run: |
|
|
rm -rf ./data/buildx/*
|
|
if [ -n "${{ github.event.inputs.tag }}" ]; then
|
|
echo "RELEASE_NAME=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
|
else
|
|
echo "RELEASE_NAME=${{ github.event.release.name }}" >> $GITHUB_ENV
|
|
fi
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
version: ${{ env.SETUP_BUILDX_VERSION }}
|
|
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
|
|
buildkitd-flags: --debug
|
|
-
|
|
name: Generate yaml
|
|
uses: docker/bake-action@v6
|
|
with:
|
|
source: ${{ github.server_url }}/${{ github.repository }}.git#${{ env.RELEASE_NAME }}
|
|
targets: update-docs
|
|
provenance: false
|
|
set: |
|
|
*.output=/tmp/buildx-docs
|
|
env:
|
|
DOCS_FORMATS: yaml
|
|
-
|
|
name: Copy yaml
|
|
run: |
|
|
cp /tmp/buildx-docs/out/reference/*.yaml ./data/buildx/
|
|
-
|
|
name: Update vendor
|
|
run: |
|
|
make vendor
|
|
env:
|
|
VENDOR_MODULE: github.com/docker/buildx@${{ env.RELEASE_NAME }}
|
|
-
|
|
name: Create PR on docs repo
|
|
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
with:
|
|
token: ${{ secrets.GHPAT_DOCS_DISPATCH }}
|
|
push-to-fork: docker-tools-robot/docker.github.io
|
|
commit-message: "vendor: github.com/docker/buildx ${{ env.RELEASE_NAME }}"
|
|
signoff: true
|
|
branch: dispatch/buildx-ref-${{ env.RELEASE_NAME }}
|
|
delete-branch: true
|
|
title: Update buildx reference to ${{ env.RELEASE_NAME }}
|
|
body: |
|
|
Update the buildx reference documentation to keep in sync with the latest release `${{ env.RELEASE_NAME }}`
|
|
draft: false
|