stages: - nix nix: image: docker:stable stage: nix script: - apk add curl git - curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --extra-conf "sandbox = false" --init none --no-confirm - export PATH="${PATH}:/nix/var/nix/profiles/default/bin" - nix flake check - nix build .#dockerImage - ./result | docker load - docker tag vavbot $CI_REGISTRY_IMAGE - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker push $CI_REGISTRY_IMAGE