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
Gentoo
Haskell
Commits
69d79b87
Commit
69d79b87
authored
Feb 07, 2021
by
James T. Lee
Browse files
Refresh repo and build image in separate pipeline
parent
08382a0c
Pipeline
#462
failed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
.gitlab-ci.yml
.gitlab-ci.yml
+6
-2
No files found.
.gitlab-ci.yml
View file @
69d79b87
...
@@ -5,6 +5,8 @@ stages:
...
@@ -5,6 +5,8 @@ stages:
'
Sync
Haskell'
:
'
Sync
Haskell'
:
stage
:
'
sync'
stage
:
'
sync'
rules
:
-
if
:
'
$BUILD_IMAGE
!=
"1"'
script
:
script
:
# Config
# Config
-
'
git
config
--global
user.name
"Nest
CI"'
-
'
git
config
--global
user.name
"Nest
CI"'
...
@@ -27,11 +29,13 @@ stages:
...
@@ -27,11 +29,13 @@ stages:
-
'
git
add
-f
metadata/md5-cache
profiles/use.local.desc'
-
'
git
add
-f
metadata/md5-cache
profiles/use.local.desc'
-
'
git
commit
-m
"$(date
-I)
snapshot"'
-
'
git
commit
-m
"$(date
-I)
snapshot"'
-
'
git
remote
set-url
origin
git@gitlab.james.tl:nest/gentoo/haskell.git'
-
'
git
remote
set-url
origin
git@gitlab.james.tl:nest/gentoo/haskell.git'
-
'
git
push
-o
ci.
skip
origin
"HEAD:${CI_COMMIT_BRANCH}"'
-
'
git
push
-o
ci.
variable="BUILD_IMAGE=1"
origin
"HEAD:${CI_COMMIT_BRANCH}"'
'
Build
Image'
:
'
Build
Image'
:
stage
:
'
build'
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
stage
:
'
build'
rules
:
-
if
:
'
$BUILD_IMAGE
==
"1"'
script
:
script
:
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
-
'
buildah
bud
--pull
-t
"$CI_REGISTRY_IMAGE"
-f
.Containerfile
.'
-
'
buildah
bud
--pull
-t
"$CI_REGISTRY_IMAGE"
-f
.Containerfile
.'
...
...
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