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
383722f7
Unverified
Commit
383722f7
authored
9 months ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Build deploy MKL container (serial and petsc).
parent
5390a73f
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
+22
-9
22 additions, 9 deletions
scripts/ci/jobs/build-guix.yml
with
22 additions
and
9 deletions
scripts/ci/jobs/build-guix.yml
+
22
−
9
View file @
383722f7
...
...
@@ -45,22 +45,35 @@ deploy container:
# 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
-
if [ $? -ne 0 ]; then !!; fi
# Pack phase
-
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 $image"
-
ssh sonjenk@frontend2.eve.ufz.de rm -f ${GUIX_PETSC_CONTAINER}
-
scp $image sonjenk@frontend2.eve.ufz.de:${GUIX_PETSC_CONTAINER}
# Minio upload
-
mcli alias set minio https://minio.ufz.de $MINIO_PUBLIC_ACCESS_KEY $MINIO_PUBLIC_SECRET_KEY
-
mcli cp $image minio/ogs/public/container/ogs/master/ogs-petsc.squashfs
# Build serial image
-
guix time-machine -C scripts/guix/channels.scm -- build ogs --with-source=ogs=$PWD
-
if [ $? -ne 0 ]; then !!; fi
# 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
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