From 91a4cfe3c1d380ac74afa4dfb931fb9c36a29028 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 1 Aug 2023 23:32:30 -0700 Subject: [PATCH] fix: :green_heart: Docker env for CI --- .config/docker_ci.env | 4 ++++ .gitignore | 1 + .gitlab-ci.yml | 1 + 3 files changed, 6 insertions(+) create mode 100644 .config/docker_ci.env diff --git a/.config/docker_ci.env b/.config/docker_ci.env new file mode 100644 index 000000000..437b8eb5e --- /dev/null +++ b/.config/docker_ci.env @@ -0,0 +1,4 @@ +# db settings +POSTGRES_PASSWORD=test +POSTGRES_USER=postgres +POSTGRES_DB=postgres diff --git a/.gitignore b/.gitignore index 0185b4e49..3047d3853 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ coverage !/.config/example.yml !/.config/devenv.yml !/.config/docker_example.env +!/.config/docker_ci.env !/.config/helm_values_example.yml !/.config/LICENSE diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 620b2509b..fd2133684 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,7 @@ dockerPush: - docker:dind before_script: - cp .config/ci.yml .config/default.yml + - cp .config/docker_ci.env .config/docker.env script: - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY