Skip to content

Commit

Permalink
fix!: remove template_url env var (#404)
Browse files Browse the repository at this point in the history
Signed-off-by: shiipou <shiishii@nocturlab.fr>
  • Loading branch information
shiipou authored Aug 18, 2023
1 parent eca8b69 commit ee0aaa8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ MONGO_URL=mongodb://root@mongo:27017
SECRET_KEY_BASE=FuEn07fjnCLaC53BiDoBagPYdsv/S65QTfxWgusKP1BA5NiaFzXGYMHLZ6JAYxt1
GITLAB_PROJECT_ID=1
LENRA_EMAIL=contact@lenra.io
TEMPLATE_URL=https://github.com/lenra-io/templates#beta
GITLAB_API_URL=https://gitlab.com/api/v4
API_ENDPOINT=localhost
LENRA_APP_URL=http://localhost:8080
Expand Down
4 changes: 1 addition & 3 deletions apps/lenra/lib/lenra/services/gitlab_api_services.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ defmodule Lenra.GitlabApiServices do
gitlab_project_id = Application.fetch_env!(:lenra, :gitlab_project_id)
runner_secret = Application.fetch_env!(:lenra, :runner_secret)
gitlab_ref = Application.fetch_env!(:lenra, :gitlab_ci_ref)
template_url = Application.fetch_env!(:lenra, :template_url)

url = "#{gitlab_api_url}/projects/#{gitlab_project_id}/pipeline"

Expand All @@ -43,8 +42,7 @@ defmodule Lenra.GitlabApiServices do
"value" => "#{runner_callback_url}/runner/builds/#{build_id}?secret=#{runner_secret}"
},
%{"key" => "APP_REPOSITORY", "value" => app_repository},
%{"key" => "REPOSITORY_BRANCH", "value" => app_repository_branch},
%{"key" => "FAAS_TEMPLATE_REPOSITORY", "value" => template_url}
%{"key" => "REPOSITORY_BRANCH", "value" => app_repository_branch}
]
})

Expand Down
1 change: 0 additions & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ config :lenra,
"sZWshq6h0RNO9T1GgUnzLmPpDkSkDAoukmd30mTuwQAGIHYIIVdl7VD2h305"
),
faas_secrets: ["gitlab-registry"],
template_url: System.get_env("TEMPLATE_URL", "https://github.com/lenra-io/templates.git#beta"),
lenra_email: System.get_env("LENRA_EMAIL", "contact@lenra.io"),
lenra_app_url: System.get_env("LENRA_APP_URL", "https://localhost:10000"),
pipeline_runner: System.get_env("PIPELINE_RUNNER", "GitLab"),
Expand Down
1 change: 0 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ if config_env() == :prod do
gitlab_api_token: System.fetch_env!("GITLAB_API_TOKEN"),
gitlab_project_id: System.fetch_env!("GITLAB_PROJECT_ID"),
gitlab_ci_ref: "master",
template_url: System.fetch_env!("TEMPLATE_URL"),
lenra_email: System.fetch_env!("LENRA_EMAIL"),
lenra_app_url: System.fetch_env!("LENRA_APP_URL"),
pipeline_runner: System.get_env("PIPELINE_RUNNER", "gitlab"),
Expand Down
1 change: 0 additions & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ config :lenra,
gitlab_project_id: "26231009",
runner_secret: "test_secret",
gitlab_ci_ref: "master",
template_url: "https://github.com/lenra-io/templates.git",
lenra_email: "contact@lenra.io",
lenra_app_url: "https://localhost:10000",
pipeline_runner: "gitlab"
Expand Down

0 comments on commit ee0aaa8

Please sign in to comment.