gha: use sudo -E in some places to prevent dropping env-vars
Using `-E` preserves environment variables, except for PATH, so PATH has to be manually set to match the current environment. I removed env-vars that were redundant (such as `GOPATH=$GOPATH`), which should be handled by `-E`. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -132,7 +132,7 @@ jobs:
|
||||
RUNC_FLAVOR: runc
|
||||
run: |
|
||||
if [[ "${OS}" == "linux" ]]; then
|
||||
sudo PATH=$PATH script/setup/install-seccomp
|
||||
sudo -E PATH=$PATH script/setup/install-seccomp
|
||||
fi
|
||||
make cri-cni-release
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
Reference in New Issue
Block a user