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

Use build-arg ENV val from local environment if set #2928

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

umohnani8
Copy link
Member

Signed-off-by: Urvashi Mohnani [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

If a user sets the ENV to be used with the build-arg flag in
the local environment by exporting it, look it up and use the
value set there for that ENV.
Add tests to cover this use case as well.

How to verify it

Which issue(s) this PR fixes:

Fixes #2888

Special notes for your reviewer:

Does this PR introduce a user-facing change?


@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 22, 2021
@TomSweeneyRedHat
Copy link
Member

@umohnani8 needs a rebase already, that was quick....

tests/bud.bats Outdated Show resolved Hide resolved
@umohnani8 umohnani8 force-pushed the env branch 2 times, most recently from e20cdfd to 173881f Compare January 25, 2021 14:09
If a user sets the ENV to be used with the build-arg flag in
the local environment by exporting it, look it up and use the
value set there for that ENV.
Add tests to cover this use case as well.

Signed-off-by: Urvashi Mohnani <[email protected]>
@TomSweeneyRedHat
Copy link
Member

LGTM
assuming happy tests

@rhatdan
Copy link
Member

rhatdan commented Jan 25, 2021

/lgtm
/hold

@umohnani8
Copy link
Member Author

@cevich any idea why the cirrus-ci test is not running?

@umohnani8
Copy link
Member Author

@rhatdan @TomSweeneyRedHat do we need to wait for cirrus-ci?

@rhatdan
Copy link
Member

rhatdan commented Jan 25, 2021

/approve
/hold cancel

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan, umohnani8

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 4925e86 into containers:master Jan 25, 2021
@rhatdan
Copy link
Member

rhatdan commented Jan 25, 2021

@umohnani8 Please cherry-pick this into release-1.19

@rhatdan rhatdan added the todo-backport-to-1.19 We should do or consider a backport to 1.19. Remove when we either decide not to, or open a PR. label Jan 25, 2021
@cevich
Copy link
Member

cevich commented Jan 26, 2021

@cevich any idea why the cirrus-ci test is not running?

Must have been some transient problem. I heard about it happening in other Buildah PRs also. Anyway, I'm glad it sorted itself out given time.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/bug Categorizes issue or PR as related to a bug. lgtm locked - please file new issue/PR todo-backport-to-1.19 We should do or consider a backport to 1.19. Remove when we either decide not to, or open a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different --build-arg behaviour between docker and podman
6 participants