▾ modified .gitlab-ci.yml +4 -3 Viewed
@@ -30,14 +30,15 @@ build_image: 30 30 nix build .#image --print-out-paths --no-link -L > store-path 31 31 "$(cat store-path)" > glean-image.tar 32 32 # skopeo pushes the docker-archive straight to the registry: no docker 33 - # daemon, so this works on a plain shared runner. 33 + # daemon, so this works on a plain shared runner. --insecure-policy skips 34 + # the signature trust policy, which the nix image does not ship. 34 35 - | 35 - nix shell nixpkgs#skopeo -c skopeo copy \ 36 + nix shell nixpkgs#skopeo -c skopeo --insecure-policy copy \ 36 37 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 37 38 docker-archive:glean-image.tar \ 38 39 "docker://$IMAGE" 39 40 - | 40 - nix shell nixpkgs#skopeo -c skopeo copy \ 41 + nix shell nixpkgs#skopeo -c skopeo --insecure-policy copy \ 41 42 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 42 43 "docker://$IMAGE" "docker://$IMAGE_LATEST" 43 44
@@ -30,14 +30,15 @@ build_image: 30 nix build .#image --print-out-paths --no-link -L > store-path 30 nix build .#image --print-out-paths --no-link -L > store-path 31 "$(cat store-path)" > glean-image.tar 31 "$(cat store-path)" > glean-image.tar 32 # skopeo pushes the docker-archive straight to the registry: no docker 32 # skopeo pushes the docker-archive straight to the registry: no docker 33 - # daemon, so this works on a plain shared runner. 33 + # daemon, so this works on a plain shared runner. --insecure-policy skips 34 + # the signature trust policy, which the nix image does not ship. 34 - | 35 - | 35 - nix shell nixpkgs#skopeo -c skopeo copy \ 36 + nix shell nixpkgs#skopeo -c skopeo --insecure-policy copy \ 36 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 37 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 37 docker-archive:glean-image.tar \ 38 docker-archive:glean-image.tar \ 38 "docker://$IMAGE" 39 "docker://$IMAGE" 39 - | 40 - | 40 - nix shell nixpkgs#skopeo -c skopeo copy \ 41 + nix shell nixpkgs#skopeo -c skopeo --insecure-policy copy \ 41 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 42 --dest-creds "gitlab-ci-token:$CI_JOB_TOKEN" \ 42 "docker://$IMAGE" "docker://$IMAGE_LATEST" 43 "docker://$IMAGE" "docker://$IMAGE_LATEST" 43 44