mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
Merge pull request #155 from nitkon/master
obs-packaging: set BUILD_ARCH, DEB_ARCH arch specific
This commit is contained in:
commit
c2e29904b3
@ -13,7 +13,7 @@ OBS_SUBPROJECT="${OBS_SUBPROJECT:-alpha}"
|
|||||||
|
|
||||||
# BUILD OPTIONS
|
# BUILD OPTIONS
|
||||||
BUILD_DISTROS=${BUILD_DISTROS:-Fedora_27 xUbuntu_16.04 CentOS_7}
|
BUILD_DISTROS=${BUILD_DISTROS:-Fedora_27 xUbuntu_16.04 CentOS_7}
|
||||||
BUILD_ARCH=${BUILD_ARCH:-}x86_64
|
BUILD_ARCH="$(uname -m)"
|
||||||
|
|
||||||
COMMIT=false
|
COMMIT=false
|
||||||
BRANCH=false
|
BRANCH=false
|
||||||
@ -24,7 +24,7 @@ VERBOSE=false
|
|||||||
# Used for debian.control files
|
# Used for debian.control files
|
||||||
# Architecture: The architecture specifies which type of hardware this
|
# Architecture: The architecture specifies which type of hardware this
|
||||||
# package was compiled for.
|
# package was compiled for.
|
||||||
DEB_ARCH="${DEB_ARCH:-amd64}"
|
DEB_ARCH="$(go env GOARCH)"
|
||||||
|
|
||||||
if command -v go; then
|
if command -v go; then
|
||||||
export GO_ARCH=$(go env GOARCH)
|
export GO_ARCH=$(go env GOARCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user