Skip to content

build(bake): update remote bake definitions page#20889

Merged
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:bake-remote-context-cwd
Sep 20, 2024
Merged

build(bake): update remote bake definitions page#20889
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:bake-remote-context-cwd

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented Sep 13, 2024

https://deploy-preview-20889--docsdocker.netlify.app/build/bake/remote-definition/

Rewrote some of the content, added a section on using local named contexts with cwd://, and replaced BAKE_CMD_CONTEXT in favor of cwd:// (prefer to have one way of doing something, and the cwd:// technique is also available on the client-side so it made sense to me to use the same version in the Bake file).

In replacing BAKE_CMD_CONTEXT I also removed the example showing how to "override" the BAKE_CMD_CONTEXT by passing a second target/argument. This is not supported with cwd://, and it is not clear to me what the use case for it is.

@dvdksn dvdksn requested a review from crazy-max as a code owner September 13, 2024 14:04
@github-actions github-actions Bot added the area/build Relates to Dockerfiles or docker build command label Sep 13, 2024
@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 13, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit f1bf9d7
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66ed2bab0e9ef5000844df8f
😎 Deploy Preview https://deploy-preview-20889--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment thread content/manuals/build/bake/remote-definition.md
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn force-pushed the bake-remote-context-cwd branch from f023af0 to f1bf9d7 Compare September 20, 2024 08:00
@dvdksn dvdksn requested a review from crazy-max September 20, 2024 08:01
name: Build
uses: docker/bake-action@v4
with:
source: "${{ github.server_url }}/${{ github.repository }}.git#${{ github.ref }}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marking this one for docker/bake-action#193 to remember we need to remove that as follow-up

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvdksn dvdksn merged commit 99bf32b into docker:main Sep 20, 2024
@dvdksn dvdksn deleted the bake-remote-context-cwd branch September 20, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Relates to Dockerfiles or docker build command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants