commit fbe044efc4dfc6911dbe735de78e2c4874ef1d1b Author: Jonas Juselius Date: Fri Jan 26 11:54:54 2024 +0100 feat: initial commit 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