Now try using the build image
This commit is contained in:
+43
-22
@@ -27,7 +27,7 @@ default:
|
|||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- kubernetes
|
- kubernetes
|
||||||
image: "nixos/nix:latest"
|
image: "$CI_REGISTRY_IMAGE/img-builder:latest"
|
||||||
parallel: ¶llel
|
parallel: ¶llel
|
||||||
matrix:
|
matrix:
|
||||||
- IMG:
|
- IMG:
|
||||||
@@ -35,28 +35,49 @@ default:
|
|||||||
- img-immich
|
- img-immich
|
||||||
- img-builder
|
- img-builder
|
||||||
script:
|
script:
|
||||||
- nix --extra-experimental-features "nix-command flakes" build ".#${IMG}"
|
- nix build ".#${IMG}"
|
||||||
- cp -L result "${IMG}.tar.gz"
|
|
||||||
- >-
|
- >-
|
||||||
nix
|
podman login
|
||||||
--extra-experimental-features "nix-command flakes"
|
|
||||||
build "nixpkgs#podman"
|
|
||||||
--out-link podman
|
|
||||||
- >-
|
|
||||||
./podman/bin/podman login
|
|
||||||
-u "$CI_REGISTRY_USER"
|
-u "$CI_REGISTRY_USER"
|
||||||
-p "$CI_REGISTRY_PASSWORD"
|
-p "$CI_REGISTRY_PASSWORD"
|
||||||
"$CI_REGISTRY"
|
"$CI_REGISTRY"
|
||||||
- mkdir -p /etc/containers/
|
- podman load -i result
|
||||||
- |-
|
- podman tag "localhost/${IMG}:latest" "$CI_CONTAINER_IMAGE/${IMG}:latest"
|
||||||
cat << EOF > /etc/containers/policy.json
|
- podman push "$CI_REGISTRY_IMAGE/${IMG}:latest"
|
||||||
{
|
# "Build image":
|
||||||
"default": [{"type": "insecureAcceptAnything"}]
|
# stage: build
|
||||||
}
|
# tags:
|
||||||
EOF
|
# - kubernetes
|
||||||
- ./podman/bin/podman load -i "${IMG}.tar.gz"
|
# image: "nixos/nix:latest"
|
||||||
- >-
|
# parallel: ¶llel
|
||||||
./podman/bin/podman tag
|
# matrix:
|
||||||
"localhost/${IMG}:latest"
|
# - IMG:
|
||||||
"$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
# - img-bitwarden
|
||||||
- ./podman/bin/podman push "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
# - img-immich
|
||||||
|
# - img-builder
|
||||||
|
# script:
|
||||||
|
# - nix --extra-experimental-features "nix-command flakes" build ".#${IMG}"
|
||||||
|
# - cp -L result "${IMG}.tar.gz"
|
||||||
|
# - >-
|
||||||
|
# nix
|
||||||
|
# --extra-experimental-features "nix-command flakes"
|
||||||
|
# build "nixpkgs#podman"
|
||||||
|
# --out-link podman
|
||||||
|
# - >-
|
||||||
|
# ./podman/bin/podman login
|
||||||
|
# -u "$CI_REGISTRY_USER"
|
||||||
|
# -p "$CI_REGISTRY_PASSWORD"
|
||||||
|
# "$CI_REGISTRY"
|
||||||
|
# - mkdir -p /etc/containers/
|
||||||
|
# - |-
|
||||||
|
# cat << EOF > /etc/containers/policy.json
|
||||||
|
# {
|
||||||
|
# "default": [{"type": "insecureAcceptAnything"}]
|
||||||
|
# }
|
||||||
|
# EOF
|
||||||
|
# - ./podman/bin/podman load -i "${IMG}.tar.gz"
|
||||||
|
# - >-
|
||||||
|
# ./podman/bin/podman tag
|
||||||
|
# "localhost/${IMG}:latest"
|
||||||
|
# "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
||||||
|
# - ./podman/bin/podman push "$CI_REGISTRY/greg/nixos-config/${IMG}:latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user