Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-feliks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feliks Kiszkurno
ogs-feliks
Commits
dcddacf9
Unverified
Commit
dcddacf9
authored
9 months ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Use matrix build for deploy container.
parent
383722f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/ci/jobs/build-guix.yml
+13
-25
13 additions, 25 deletions
scripts/ci/jobs/build-guix.yml
with
13 additions
and
25 deletions
scripts/ci/jobs/build-guix.yml
+
13
−
25
View file @
dcddacf9
...
...
@@ -39,41 +39,29 @@ deploy container:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
allow_failure
:
true
parallel
:
matrix
:
-
GUIX_PACKAGE
:
[
"
ogs"
,
"
ogs-petsc"
,
"
ogs-mkl"
,
"
ogs-petsc-mkl"
]
script
:
-
which guix
-
guix describe
# Build phase, retry once if failed
-
guix time-machine -C scripts/guix/channels.scm -- build bash coreutils
-
if [ $? -ne 0 ]; then !!; fi
-
guix time-machine -C scripts/guix/channels.scm -- build ogs --with-source=ogs=$PWD
-
if [ $? -ne 0 ]; then !!; fi
-
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc --with-source=ogs-petsc=$PWD
-
if [ $? -ne 0 ]; then !!; fi
-
guix time-machine -C scripts/guix/channels.scm -- build ogs-mkl --with-source=ogs-mkl=$PWD
-
if [ $? -ne 0 ]; then !!; fi
-
guix time-machine -C scripts/guix/channels.scm -- build ogs-petsc-mkl --with-source=ogs-petsc-mkl=$PWD
-
guix time-machine -C scripts/guix/channels.scm -- build ${GUIX_PACKAGE} --with-source=${GUIX_PACKAGE}=$PWD
-
if [ $? -ne 0 ]; then !!; fi
# Pack phase
-
mcli alias set minio https://minio.ufz.de $MINIO_PUBLIC_ACCESS_KEY $MINIO_PUBLIC_SECRET_KEY
# Pack serial image
-
image=$( guix time-machine -C scripts/guix/channels.scm -- pack -RR --format=squashfs bash coreutils ogs --with-source=ogs=$PWD | tee | tail -1 )
-
echo "Image (serial) $image"
-
mcli cp $image minio/ogs/public/container/ogs/master/ogs-serial.squashfs
# Pack petsc image
-
image=$( guix time-machine -C scripts/guix/channels.scm -- pack -RR --format=squashfs bash coreutils ogs-petsc --with-source=ogs-petsc=$PWD | tee | tail -1 )
-
echo "Image (petsc) $image"
# Copy to eve as well
-
ssh sonjenk@frontend2.eve.ufz.de rm -f ${GUIX_PETSC_CONTAINER}
-
scp $image sonjenk@frontend2.eve.ufz.de:${GUIX_PETSC_CONTAINER}
-
mcli cp $image minio/ogs/public/container/ogs/master/ogs-petsc.squashfs
# Pack serial MKL image
-
image=$( guix time-machine -C scripts/guix/channels.scm -- pack -RR --format=squashfs bash coreutils ogs-mkl --with-source=ogs-mkl=$PWD | tee | tail -1 )
-
echo "Image (serial MKL) $image"
-
mcli cp $image minio/ogs/public/container/ogs/master/ogs-serial-mkl.squashfs
# Pack petsc MKL image
-
image=$( guix time-machine -C scripts/guix/channels.scm -- pack -RR --format=squashfs bash coreutils ogs-petsc-mkl --with-source=ogs-petsc-mkl=$PWD | tee | tail -1 )
-
echo "Image (petsc MKL) $image"
-
mcli cp $image minio/ogs/public/container/ogs/master/ogs-petsc-mkl.squashfs
-
image=$( guix time-machine -C scripts/guix/channels.scm -- pack -RR --format=squashfs bash coreutils ${GUIX_PACKAGE} --with-source=${GUIX_PACKAGE}=$PWD | tee | tail -1 )
-
echo "Image (${GUIX_PACKAGE}) $image"
-
mcli cp $image minio/ogs/public/container/ogs/master/${GUIX_PACKAGE}.squashfs
# Copy petsc image to eve as well
-
|
if [[ "$GUIX_PACKAGE" == ogs-petsc ]]; then
ssh sonjenk@frontend2.eve.ufz.de rm -f ${GUIX_PETSC_CONTAINER}
scp $image sonjenk@frontend2.eve.ufz.de:${GUIX_PETSC_CONTAINER}
fi
test container eve
:
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment