Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bake: split definition into two files #353

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Oct 28, 2023

Allows to either include tags or labels or both definitions.
Keep bake-file output with tags and labels for backward compatibility.

action.yml Show resolved Hide resolved
UPGRADE.md Outdated Show resolved Hide resolved
@crazy-max
Copy link
Member Author

@tonistiigi As discussed keep bake-file output with tags and labels for backward compatibility.

@crazy-max crazy-max marked this pull request as ready for review November 16, 2023 14:55
UPGRADE.md Outdated
> **Note**
>
> `bake-file` output is still available for backward compatibility, but it's
> recommended to use `bake-file-tags` and `bake-file-labels` outputs instead.
Copy link
Member

Choose a reason for hiding this comment

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

Why is this recommended? I would more describe it as "alternatively, you can use the individual files that only set tags or labels".

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this section and added note in the README for the alternative syntax:

image

Copy link
Member

Choose a reason for hiding this comment

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

It still suggests multiple files as a recommended path, what I don't understand as it is more complicated way to use the action.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was to avoid users getting confused if they want to set annotations in follow-up with #352 (see https://github.com/crazy-max/docker-metadata-action/tree/annotations-alt#annotations) but that seems right to still make bake-file the goto behavior. Updated to keep current syntax.

crazy-max and others added 2 commits November 23, 2023 17:08
Allows to either include tags or labels or both definitions.
Keep bake-file output for backward compatibility.

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max merged commit 2a4836a into docker:master Nov 27, 2023
27 checks passed
@crazy-max crazy-max deleted the split-bake-file branch November 27, 2023 08:50
renovate bot referenced this pull request in 4m-mazi/gh-test Nov 30, 2023
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [docker/metadata-action](https://togithub.com/docker/metadata-action)
| action | minor | `v5.0.0` -> `v5.1.0` |

---

### Release Notes

<details>
<summary>docker/metadata-action (docker/metadata-action)</summary>

###
[`v5.1.0`](https://togithub.com/docker/metadata-action/releases/tag/v5.1.0)

[Compare
Source](https://togithub.com/docker/metadata-action/compare/v5.0.0...v5.1.0)

#### What's Changed

- Annotations support by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/352](https://togithub.com/docker/metadata-action/pull/352)
- Split bake definition into two files by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/353](https://togithub.com/docker/metadata-action/pull/353)
- Allow images input to be empty to output bare tags by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/358](https://togithub.com/docker/metadata-action/pull/358)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.1.1 to 6.0.0 in
[https://github.com/docker/metadata-action/pull/348](https://togithub.com/docker/metadata-action/pull/348)
- Bump [@&#8203;babel/traverse](https://togithub.com/babel/traverse)
from 7.17.3 to 7.23.2 in
[https://github.com/docker/metadata-action/pull/350](https://togithub.com/docker/metadata-action/pull/350)
- Bump
[@&#8203;docker/actions-toolkit](https://togithub.com/docker/actions-toolkit)
from 0.12.0 to 0.14.0 in
[https://github.com/docker/metadata-action/pull/349](https://togithub.com/docker/metadata-action/pull/349)
[https://github.com/docker/metadata-action/pull/357](https://togithub.com/docker/metadata-action/pull/357)
- Bump csv-parse from 5.5.0 to 5.5.2 in
[https://github.com/docker/metadata-action/pull/346](https://togithub.com/docker/metadata-action/pull/346)
- Bump semver from 7.5.3 to 7.5.4 in
[https://github.com/docker/metadata-action/pull/335](https://togithub.com/docker/metadata-action/pull/335)

**Full Changelog**:
docker/metadata-action@v5.0.0...v5.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Mogyuchi/gh-test).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
arnfinn referenced this pull request in Rapporteket/docker Jan 5, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [docker/metadata-action](https://togithub.com/docker/metadata-action)
| action | minor | `v5.0.0` -> `v5.4.0` |

---

### Release Notes

<details>
<summary>docker/metadata-action (docker/metadata-action)</summary>

###
[`v5.4.0`](https://togithub.com/docker/metadata-action/releases/tag/v5.4.0)

[Compare
Source](https://togithub.com/docker/metadata-action/compare/v5.3.0...v5.4.0)

- Bump
[@&#8203;docker/actions-toolkit](https://togithub.com/docker/actions-toolkit)
from 0.15.0 to 0.16.0 in
[https://github.com/docker/metadata-action/pull/369](https://togithub.com/docker/metadata-action/pull/369)
- Bump csv-parse from 5.5.2 to 5.5.3 in
[https://github.com/docker/metadata-action/pull/365](https://togithub.com/docker/metadata-action/pull/365)

**Full Changelog**:
docker/metadata-action@v5.3.0...v5.4.0

###
[`v5.3.0`](https://togithub.com/docker/metadata-action/releases/tag/v5.3.0)

[Compare
Source](https://togithub.com/docker/metadata-action/compare/v5.2.0...v5.3.0)

- Bump
[@&#8203;docker/actions-toolkit](https://togithub.com/docker/actions-toolkit)
from 0.14.0 to 0.15.0 in
[https://github.com/docker/metadata-action/pull/363](https://togithub.com/docker/metadata-action/pull/363)
(fixes
[#&#8203;362](https://togithub.com/docker/metadata-action/issues/362))

**Full Changelog**:
docker/metadata-action@v5.2.0...v5.3.0

###
[`v5.2.0`](https://togithub.com/docker/metadata-action/releases/tag/v5.2.0)

[Compare
Source](https://togithub.com/docker/metadata-action/compare/v5.1.0...v5.2.0)

- Custom annotations support by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/361](https://togithub.com/docker/metadata-action/pull/361)

**Full Changelog**:
docker/metadata-action@v5.1.0...v5.2.0

###
[`v5.1.0`](https://togithub.com/docker/metadata-action/releases/tag/v5.1.0)

[Compare
Source](https://togithub.com/docker/metadata-action/compare/v5.0.0...v5.1.0)

- Annotations support by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/352](https://togithub.com/docker/metadata-action/pull/352)
- Split bake definition into two files by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/353](https://togithub.com/docker/metadata-action/pull/353)
- Allow images input to be empty to output bare tags by
[@&#8203;crazy-max](https://togithub.com/crazy-max) in
[https://github.com/docker/metadata-action/pull/358](https://togithub.com/docker/metadata-action/pull/358)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.1.1 to 6.0.0 in
[https://github.com/docker/metadata-action/pull/348](https://togithub.com/docker/metadata-action/pull/348)
- Bump [@&#8203;babel/traverse](https://togithub.com/babel/traverse)
from 7.17.3 to 7.23.2 in
[https://github.com/docker/metadata-action/pull/350](https://togithub.com/docker/metadata-action/pull/350)
- Bump
[@&#8203;docker/actions-toolkit](https://togithub.com/docker/actions-toolkit)
from 0.12.0 to 0.14.0 in
[https://github.com/docker/metadata-action/pull/349](https://togithub.com/docker/metadata-action/pull/349)
[https://github.com/docker/metadata-action/pull/357](https://togithub.com/docker/metadata-action/pull/357)
- Bump csv-parse from 5.5.0 to 5.5.2 in
[https://github.com/docker/metadata-action/pull/346](https://togithub.com/docker/metadata-action/pull/346)
- Bump semver from 7.5.3 to 7.5.4 in
[https://github.com/docker/metadata-action/pull/335](https://togithub.com/docker/metadata-action/pull/335)

**Full Changelog**:
docker/metadata-action@v5.0.0...v5.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Rapporteket/docker).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuOTMuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants