mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Merge pull request #149 from nitkon/patch-4
obs-packaging: Build and run Dockerfile based on GOARCH
This commit is contained in:
commit
7f89d0c40d
@ -34,6 +34,7 @@ docker_run() {
|
||||
-v "${HOME}/.ssh":/root/.ssh \
|
||||
-v "${HOME}/.gitconfig":/root/.gitconfig \
|
||||
-v /etc/profile:/etc/profile \
|
||||
--env GO_ARCH="${GO_ARCH}" \
|
||||
--env http_proxy="${http_proxy}" \
|
||||
--env https_proxy="${https_proxy}" \
|
||||
--env no_proxy="${no_proxy}" \
|
||||
@ -71,6 +72,7 @@ main() {
|
||||
sudo docker build \
|
||||
--build-arg http_proxy="${http_proxy}" \
|
||||
--build-arg https_proxy="${https_proxy}" \
|
||||
--build-arg GO_ARCH="${GO_ARCH}" \
|
||||
-t $obs_image "${script_dir}"
|
||||
|
||||
#Create/update OBS repository for branch
|
||||
|
Loading…
Reference in New Issue
Block a user