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

@dvdksndvdksn commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

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.

@github-actionsgithub-actionsBot added the area/build Relates to Dockerfiles or docker build command label Sep 13, 2024
@netlify

netlifyBot commented Sep 13, 2024

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

NameLink
🔨 Latest commitf1bf9d7
🔍 Latest deploy loghttps://app.netlify.com/sites/docsdocker/deploys/66ed2bab0e9ef5000844df8f
😎 Deploy Previewhttps://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 threadcontent/manuals/build/bake/remote-definition.md
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn
dvdksnforce-pushed the bake-remote-context-cwd branch from f023af0 to f1bf9d7CompareSeptember 20, 2024 08:00
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:mainSep 20, 2024
@dvdksn
dvdksn deleted the bake-remote-context-cwd branch September 20, 2024 08:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/buildRelates to Dockerfiles or docker build command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dvdksn@crazy-max