From fbe044efc4dfc6911dbe735de78e2c4874ef1d1b Mon Sep 17 00:00:00 2001 From: Jonas Juselius Date: Fri, 26 Jan 2024 11:54:54 +0100 Subject: [PATCH] feat: initial commit --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ Dockerfile | 14 ++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8fd8579 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +variables: + IMAGE_NAME: busynix:${CI_COMMIT_TAG:-latest} + +stages: + - release + +docker-dist: + stage: release + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + before_script: + - |- + echo "{ + \"auths\": { + \"$CI_REGISTRY\" :{ + \"username\":\"$CI_REGISTRY_USER\", + \"password\":\"$CI_REGISTRY_PASSWORD\"} + } + }" > /kaniko/.docker/config.json + script: + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $IMAGE_NAME + + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..788411a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM nixos/nix + +RUN nix-channel --add https://nixos.org/channels/nixos-23.11 nixpkgs +RUN nix-channel --update + +RUN nix-env -iA nixpkgs.bind +RUN nix-env -iA nixpkgs.inetutils +RUN nix-env -iA nixpkgs.curl +RUN nix-env -iA nixpkgs.neovim +RUN nix-env -iA nixpkgs.fish +RUN nix-env -iA nixpkgs.pgcli +RUN nix-env -iA nixpkgs.redis + +RUN /bin/sh