Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
containers
eic_container
Commits
310d26da
Commit
310d26da
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: push to eicweb during build, ghcr at end
parent
1f23bd64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!807
feat: push to eicweb during build, ghcr at end
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
containers/jug/dev.Dockerfile
+5
-1
5 additions, 1 deletion
containers/jug/dev.Dockerfile
spack-environment/Makefile
+10
-6
10 additions, 6 deletions
spack-environment/Makefile
with
15 additions
and
7 deletions
containers/jug/dev.Dockerfile
+
5
−
1
View file @
310d26da
...
...
@@ -145,7 +145,11 @@ spack env activate --dir ${SPACK_ENV}
spack add juggler@git.${JUGGLER_VERSION}
spack add eicrecon@git.${EICRECON_VERSION}
spack concretize --fresh --force --quiet
make --jobs ${jobs} --keep-going --directory /opt/spack-environment SPACK_ENV=${SPACK_ENV} BUILDCACHE_MIRROR_ONLY_PACKAGE="eics3rw" BUILDCACHE_MIRROR_DEPENDENCIES="eicweb ghcr"
make --jobs ${jobs} --keep-going --directory /opt/spack-environment \
SPACK_ENV=${SPACK_ENV} \
BUILDCACHE_OCI_PROMPT="eicweb" \
BUILDCACHE_OCI_FINAL="ghcr" \
BUILDCACHE_S3_FINAL="eics3rw"
ccache --show-stats
ccache --zero-stats
EOF
...
...
This diff is collapsed.
Click to expand it.
spack-environment/Makefile
+
10
−
6
View file @
310d26da
...
...
@@ -7,8 +7,10 @@ export SPACK_COLOR = always
SPACK_ENV
?=
dev
BUILDCACHE_MIRROR_ONLY_PACKAGE
:=
BUILDCACHE_MIRROR_DEPENDENCIES
:=
BUILDCACHE_S3_PROMPT
:=
BUILDCACHE_S3_FINAL
:=
BUILDCACHE_OCI_PROMPT
:=
BUILDCACHE_OCI_FINAL
:=
BUILDCACHE_OCI_BASE_IMAGE
:=
ghcr.io/eic/debian:stable-slim
.PHONY
:
all clean
...
...
@@ -20,13 +22,15 @@ include $(SPACK_ENV)/spack.mk
endif
$(SPACK_ENV)/push
:
$(addprefix $(SPACK_ENV)/push/
,
$($(SPACK_ENV)/SPACK_PACKAGE_IDS))
$(
foreach buildcache,
$(
BUILDCACHE_MIRROR_ONLY_PACKAGE
)
,
$(
SPACK
)
buildcache update-index
$(
buildcache
)
;)
$(
foreach buildcache,
$(
BUILDCACHE_MIRROR_DEPENDENCIES
)
,
$(
SPACK
)
buildcache update-index
$(
buildcache
)
;)
$(
foreach buildcache,
$(
BUILDCACHE_S3_FINAL
)
,
$(
SPACK
)
buildcache push
--unsigned
$(
buildcache
)
;)
$(
foreach buildcache,
$(
BUILDCACHE_S3_FINAL
)
,
$(
SPACK
)
buildcache update-index
$(
buildcache
)
;)
$(
foreach buildcache,
$(
BUILDCACHE_S3_PROMPT
)
,
$(
SPACK
)
buildcache update-index
$(
buildcache
)
;)
$(
foreach buildcache,
$(
BUILDCACHE_OCI_FINAL
)
,
$(
SPACK
)
buildcache push
--unsigned
--base-image
$(
BUILDCACHE_OCI_BASE_IMAGE
)
$(
buildcache
)
;)
$(SPACK_ENV)/push/%
:
$(SPACK_ENV)/install/%
@
mkdir
-p
$(
dir
$@
)
$(
foreach buildcache,
$(
BUILDCACHE_
MIRROR_ONLY_PACKAGE
)
,
$(
SPACK
)
buildcache push
--only
=
package
--unsigned
$(
buildcache
)
/
$(
HASH
)
;)
# push
$(
SPEC
)
$(
foreach buildcache,
$(
BUILDCACHE_
MIRROR_DEPENDENCIES
)
,
$(
SPACK
)
buildcache push
--unsigned
--base-image
$(
BUILDCACHE_OCI_BASE_IMAGE
)
$(
buildcache
)
/
$(
HASH
)
|
grep
-v
"Using cached archive"
;)
# push
$(
SPEC
)
$(
foreach buildcache,
$(
BUILDCACHE_
S3_PROMPT
)
,
$(
SPACK
)
buildcache push
--unsigned
--only
=
package
$(
buildcache
)
/
$(
HASH
)
;)
# push
$(
SPEC
)
$(
foreach buildcache,
$(
BUILDCACHE_
OCI_PROMPT
)
,
$(
SPACK
)
buildcache push
--unsigned
--base-image
$(
BUILDCACHE_OCI_BASE_IMAGE
)
$(
buildcache
)
/
$(
HASH
)
|
grep
-v
"Using cached archive"
;)
# push
$(
SPEC
)
@
touch
$@
$(SPACK_ENV)/spack.lock
:
$(SPACK_ENV)/spack.yaml Makefile
...
...
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