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: source: cmd: Persist rootfs state across steps #376

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

cpuguy83
Copy link
Member

Before this, given an image source with multiple steps

path: /bar
image:
  ref: foobar
  steps:
    - command: echo foo > /foo
    - command: [ -f /foo ]

The 2nd step would fail because the rootfs state was not being persisted between steps, only the changes to the path that is output for the source.

Before this, given an image source with multiple steps

```yaml
path: /bar
image:
  ref: foobar
  steps:
    - command: echo foo > /foo
    - command: [ -f /foo ]
```

The 2nd step would fail because the rootfs state was not being persisted
between steps, only the changes to the path that is output for the
source.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 requested a review from a team as a code owner September 19, 2024 20:54
source.go Show resolved Hide resolved
@cpuguy83 cpuguy83 merged commit 302def1 into Azure:main Sep 23, 2024
9 checks passed
@cpuguy83 cpuguy83 deleted the fix_cmd_multistep branch September 23, 2024 23:36
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