Skip to content

build: fix service with profile missing secrets #13023

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

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Jul 7, 2025

What I did

As build resolves enabled service after project has been loaded, we must not drop "unused resources" as we actually don't know they are.

Related issue
fixes #13020

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested a review from a team as a code owner July 7, 2025 13:03
@ndeloof ndeloof requested a review from glours July 7, 2025 13:03
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@glours glours enabled auto-merge (rebase) July 7, 2025 13:04
@ndeloof ndeloof force-pushed the build_secret_provile branch from 6fea71b to 6f55b14 Compare July 7, 2025 14:32
@glours glours merged commit 7cf7c64 into docker:main Jul 7, 2025
25 checks passed
Copy link

codecov bot commented Jul 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.64%. Comparing base (ec49bac) to head (6f55b14).
Report is 69 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13023      +/-   ##
==========================================
+ Coverage   53.37%   53.64%   +0.27%     
==========================================
  Files         160      165       +5     
  Lines       16642    17073     +431     
==========================================
+ Hits         8882     9159     +277     
- Misses       6848     6976     +128     
- Partials      912      938      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ndeloof ndeloof deleted the build_secret_provile branch July 7, 2025 14:48
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jul 9, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker/compose](https://github.com/docker/compose) | patch | `v2.38.1` -> `v2.38.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>docker/compose (docker/compose)</summary>

### [`v2.38.2`](https://github.com/docker/compose/releases/tag/v2.38.2)

[Compare Source](docker/compose@v2.38.1...v2.38.2)

#### What's Changed

##### ✨ Improvements

- Add `--networks` flag to config command by [@&#8203;jarqvi](https://github.com/jarqvi) in docker/compose#13021

##### 🐛 Fixes

- Add a Done event to model progress display by [@&#8203;glours](https://github.com/glours) in docker/compose#13008
- Fix the way we're checking if the provider metadata are empty or not by [@&#8203;glours](https://github.com/glours) in docker/compose#13017
- Build: fix service with profile missing secrets by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#13023
- Fix select dockerignore based on Dockerfile name set from symlink by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#13024

##### 🔧  Internal

- pkg/compose: remove redundant uses of strslice.StrSlice by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#13002
- (reactoring) avoid a global variable by introducing logConsumer decorator by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12945
- Chore: fix some minor issues in the comments by [@&#8203;mountdisk](https://github.com/mountdisk) in docker/compose#12991
- A single place for shell-out command setup by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#13007
- Add USER\_AGENT variable to cmd when shellouting by [@&#8203;glours](https://github.com/glours) in docker/compose#13025

##### ⚙️ Dependencies

- Bump golang to v1.23.10 by [@&#8203;glours](https://github.com/glours) in docker/compose#13004
- Bump go-viper/mapstructure to version v2.3.0 by [@&#8203;glours](https://github.com/glours) in docker/compose#13005
- Build(deps): bump github.com/moby/buildkit from 0.23.1 to 0.23.2 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#13009
- Build(deps): bump github.com/docker/cli from 28.3.0+incompatible to 28.3.1+incompatible by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#13012
- Build(deps): bump github.com/docker/docker from 28.3.0+incompatible to 28.3.1+incompatible by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#13011

#### New Contributors

- [@&#8203;mountdisk](https://github.com/mountdisk) made their first contribution in docker/compose#12991

**Full Changelog**: docker/compose@v2.38.1...v2.38.2

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

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

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

---

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

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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.

[BUG] Build secret files not mounted in /run/secrets when using docker compose build with profiles
2 participants