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

Fix built image id output for subsequent builds #270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philipfalkner
Copy link

Description

For the first docker build task in a job, DOCKER_TASK_BUILT_IMAGES is correct. But for subsequent builds, instead of appending the new image's hash it was duplicating the list, e.g.

  • after first build: firstBuildId
  • after second build: firstBuildId;firstBuildId
  • after third build: firstBuildId;firstBuildId;firstBuildId;firstBuildId
  • etc.

Solution

Instead we append the new image hash, as was seemingly the original intention. So now:

  • after first build: firstBuildId
  • after second build: firstBuildId;secondBuildId
  • after third build: firstBuildId;secondBuildId;thirdBuildId
  • etc.

@philipfalkner philipfalkner force-pushed the bugfix/docker-task-built-images-wrong-after-multiple-builds branch from 0de7b20 to e3d0d79 Compare January 26, 2024 20:46
@philipfalkner philipfalkner marked this pull request as ready for review January 26, 2024 20:55
@philipfalkner philipfalkner force-pushed the bugfix/docker-task-built-images-wrong-after-multiple-builds branch from e3d0d79 to 5f3d047 Compare February 5, 2024 19:32
@philipfalkner philipfalkner requested a review from a team as a code owner February 5, 2024 19:32
@philipfalkner philipfalkner requested review from v-mohithgc and v-schhabra and removed request for a team February 5, 2024 19:32
@philipfalkner philipfalkner force-pushed the bugfix/docker-task-built-images-wrong-after-multiple-builds branch 2 times, most recently from d4aa33b to 1bea6c7 Compare February 23, 2024 16:04
@philipfalkner philipfalkner force-pushed the bugfix/docker-task-built-images-wrong-after-multiple-builds branch from 1bea6c7 to 3e34025 Compare March 5, 2024 16:45
For the first `docker build` task in a job, DOCKER_TASK_BUILT_IMAGES is
correct. But for subsequent builds, instead of appending the new image's
hash it was duplicating the list, e.g.

- after first build: firstBuildId
- after second build: firstBuildId;firstBuildId
- after third build: firstBuildId;firstBuildId;firstBuildId;firstBuildId
- etc.

Instead we append the new image hash, as was seemingly the original
intention. So now:

- after first build: firstBuildId
- after second build: firstBuildId;secondBuildId
- after third build: firstBuildId;secondBuildId;thirdBuildId
- etc.
@philipfalkner philipfalkner force-pushed the bugfix/docker-task-built-images-wrong-after-multiple-builds branch from 3e34025 to 0904353 Compare April 5, 2024 18:32
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.

1 participant