Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nix Jupyterwith Ihaskell
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Hauser
Nix Jupyterwith Ihaskell
Commits
66f0e3e3
Commit
66f0e3e3
authored
4 years ago
by
Raphael Das Gupta
Browse files
Options
Downloads
Patches
Plain Diff
use skopeo
parent
ed53afe9
No related branches found
No related tags found
No related merge requests found
Pipeline
#23354
failed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-8
9 additions, 8 deletions
.gitlab-ci.yml
docker.nix
+1
-1
1 addition, 1 deletion
docker.nix
with
10 additions
and
9 deletions
.gitlab-ci.yml
+
9
−
8
View file @
66f0e3e3
docker-image
:
stage
:
build
image
:
nixpkgs/nix
before_script
:
-
nix run -f channel:nixos-unstable podman -c podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
nix-build docker.nix
-
nix run -f channel:nixos-unstable podman -c sh -c 'podman load < result'
-
nix run -f channel:nixos-unstable podman -c podman tag jupyter-image:latest "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
-
nix run -f channel:nixos-unstable podman -c podman tag jupyter-image:latest "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
-
nix run -f channel:nixos-unstable podman -c podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
-
nix run -f channel:nixos-unstable podman -c podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
-
nix-build docker.nix -o image.tar.gz
-
mkdir /var/tmp
-
|
nix run -f channel:nixos-unstable skopeo -c skopeo \
--insecure-policy \
copy \
--dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
docker-archive:image.tar.gz \
docker://$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
This diff is collapsed.
Click to expand it.
docker.nix
+
1
−
1
View file @
66f0e3e3
let
jupyter
=
import
(
builtins
.
fetchGit
{
url
=
https://github.com/tweag/jupyterWith
;
rev
=
""
;
rev
=
"
35eb565c6d00f3c61ef5e74e7e41870cfa3926f7
"
;
})
{};
iHaskell
=
jupyter
.
kernels
.
iHaskellWith
{
...
...
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