Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Stage 0
Commits
7332cb73
Commit
7332cb73
authored
Dec 27, 2020
by
James T. Lee
Browse files
Fully parameterize build script in prep for multi-arch builds
parent
6f721eaa
Pipeline
#289
canceled with stage
in 15 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
.gitlab-ci.yml
.gitlab-ci.yml
+12
-7
No files found.
.gitlab-ci.yml
View file @
7332cb73
...
@@ -7,17 +7,22 @@ default:
...
@@ -7,17 +7,22 @@ default:
'
Build
haswell'
:
'
Build
haswell'
:
stage
:
'
build'
stage
:
'
build'
tags
:
[
'
nest'
]
tags
:
[
'
nest'
]
variables
:
ARCH
:
'
x86_64'
CPU
:
'
haswell'
GENTOO_STAGE3_TAG
:
'
amd64'
script
:
script
:
-
'
mkdir
debug'
-
'
mkdir
debug'
-
'
buildah
bud
--pull
--squash
-
'
buildah
bud
--pull
--squash
--security-opt
seccomp=unconfined
--security-opt
seccomp=unconfined
--build-arg
GENTOO_STAGE3_TAG=
amd64
--build-arg
GENTOO_STAGE3_TAG=
"$GENTOO_STAGE3_TAG"
--build-arg
EMERGE_DEFAULT_OPTS="$CI_HOST_EMERGE_DEFAULT_OPTS
--usepkg"
--build-arg
EMERGE_DEFAULT_OPTS="$
{
CI_HOST_EMERGE_DEFAULT_OPTS
}
--usepkg"
--build-arg
MAKEOPTS="$CI_HOST_MAKEOPTS"
--build-arg
MAKEOPTS="$CI_HOST_MAKEOPTS"
--build-arg
PROFILE="haswell/server"
--build-arg
PROFILE="${CPU}/server"
-v
"/usr/bin/qemu-${ARCH}:/usr/bin/qemu-${ARCH}:ro"
-v
"${PWD}/debug:/usr/lib/debug"
-v
"${PWD}/debug:/usr/lib/debug"
-v
/nest:/nest
-v
/nest:/nest
-t
"${CI_REGISTRY_IMAGE}:
haswell
"
.'
-t
"${CI_REGISTRY_IMAGE}:
${CPU}
"
.'
-
'
buildah
bud
-t
"${CI_REGISTRY_IMAGE}/debug:
haswell
"
-f
Containerfile.debug
.'
-
'
buildah
bud
-t
"${CI_REGISTRY_IMAGE}/debug:
${CPU}
"
-f
Containerfile.debug
.'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}:
haswell
"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}:
${CPU}
"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}/debug:
haswell
"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}/debug:
${CPU}
"'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment