Commit 00e5dc84 authored by James T. Lee's avatar James T. Lee
Browse files

Refresh repo and build image in separate pipeline

parent 08382a0c
Pipeline #461 failed
......@@ -5,6 +5,8 @@ stages:
'Sync Haskell':
stage: 'sync'
rules:
-if: '$BUILD_IMAGE != "1"'
script:
# Config
- 'git config --global user.name "Nest CI"'
......@@ -27,11 +29,13 @@ stages:
- 'git add -f metadata/md5-cache profiles/use.local.desc'
- 'git commit -m "$(date -I) snapshot"'
- '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':
stage: 'build'
image: '${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
stage: 'build'
rules:
- if: '$BUILD_IMAGE == "1"'
script:
- 'buildah login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"'
- 'buildah bud --pull -t "$CI_REGISTRY_IMAGE" -f .Containerfile .'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment