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
Tools
R10k
Commits
1f7992a1
Commit
1f7992a1
authored
Feb 07, 2021
by
James T. Lee
Browse files
Rebuild with 'build' fact instead of 'tool'
parent
2ef356fe
Pipeline
#460
passed with stage
in 10 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
.gitlab-ci.yml
.gitlab-ci.yml
+13
-12
Containerfile
Containerfile
+2
-1
No files found.
.gitlab-ci.yml
View file @
1f7992a1
---
---
default
:
.template
:
&template
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
before_script
:
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
'
Build
haswell'
:
stage
:
'
build'
stage
:
'
build'
tags
:
[
'
nest'
]
tags
:
[
'
nest'
]
script
:
script
:
-
'
mkdir
debug'
-
'
mkdir
debug'
-
'
buildah
bud
--pull
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
--security-opt
seccomp=unconfined
-
'
buildah
bud
--security-opt
seccomp=unconfined
--build-arg
STAGE1_TAG=
haswell
-server
--build-arg
STAGE1_TAG=
"${CPU}
-server
"
--build-arg
FACTER_emerge_default_opts="$CI_HOST_EMERGE_DEFAULT_OPTS"
--build-arg
FACTER_emerge_default_opts="$CI_HOST_EMERGE_DEFAULT_OPTS"
--build-arg
FACTER_makeopts="$CI_HOST_MAKEOPTS"
--build-arg
FACTER_makeopts="$CI_HOST_MAKEOPTS"
-v
"${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
-v
"${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
-v
"${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
-v
"${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
-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
--build-arg
STAGE1_TAG=haswell-server
-t
"${CI_REGISTRY_IMAGE}/debug:haswell"
-f
Containerfile.debug
.'
-
'
buildah
bud
--build-arg
STAGE1_TAG="${CPU}-server"
-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}"'
'
Build
haswell'
:
<<
:
*template
variables
:
CPU
:
'
haswell'
Containerfile
View file @
1f7992a1
ARG STAGE1_TAG
ARG STAGE1_TAG
FROM nest/stage1:${STAGE1_TAG}
FROM nest/stage1:${STAGE1_TAG}
ARG FACTER_build=r10k
ARG FACTER_emerge_default_opts
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
ARG FACTER_makeopts
RUN eix-sync -q
RUN eix-sync -q
RUN
FACTER_tool=r10k
puppet agent --test --runtimeout 0; [ $? -eq 2 ]
RUN puppet agent --test --runtimeout 0; [ $? -eq 2 ]
RUN rm -rf /var/db/repos
RUN rm -rf /var/db/repos
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