Skip to content
Snippets Groups Projects
Commit 66f0e3e3 authored by Raphael Das Gupta's avatar Raphael Das Gupta
Browse files

use skopeo

parent ed53afe9
No related branches found
No related tags found
No related merge requests found
Pipeline #23354 failed
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
let
jupyter = import (builtins.fetchGit {
url = https://github.com/tweag/jupyterWith;
rev = "";
rev = "35eb565c6d00f3c61ef5e74e7e41870cfa3926f7";
}) {};
iHaskell = jupyter.kernels.iHaskellWith {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment