diff --git a/cookiecutter.json b/cookiecutter.json index 6d0f44f..559f3c6 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -5,7 +5,8 @@ "project_name": "python_app", "project_slug": "{{ cookiecutter.project_name.lower().strip().replace(' ', '_').replace('-','_')}}", "initial_dependencies": "", - "description": "An templated Python project", + "description": "A templated Python project", + "image_registry": "registry.runcible.io", "open_source_license": [ "MIT", "BSD-3-Clause", diff --git a/{{cookiecutter.project_slug}}/.drone.yml b/{{cookiecutter.project_slug}}/.drone.yml index b373f9b..f1f0114 100644 --- a/{{cookiecutter.project_slug}}/.drone.yml +++ b/{{cookiecutter.project_slug}}/.drone.yml @@ -33,8 +33,8 @@ steps: password: from_secret: automate_password dockerfile: Dockerfile - registry: registry.runcible.io - repo: registry.runcible.io/{{ cookiecutter.project_slug }} + registry: {{ cookiecutter.image_registry }} + repo: {{ cookiecutter.image_registry }}/{{ cookiecutter.project_slug }} tags: - ${DRONE_COMMIT_SHA} when: diff --git a/{{cookiecutter.project_slug}}/tasks.py b/{{cookiecutter.project_slug}}/tasks.py index ec77d40..fc75776 100644 --- a/{{cookiecutter.project_slug}}/tasks.py +++ b/{{cookiecutter.project_slug}}/tasks.py @@ -2,7 +2,7 @@ import os from invoke import task -IMAGE_RESPOSITORY = os.environ.get("IMAGE_RESPOSITORY", "registry.runcible.io/{{ cookiecutter.project_slug }}") +IMAGE_RESPOSITORY = os.environ.get("IMAGE_RESPOSITORY", "{{ cookiecutter.image_registry }}/{{ cookiecutter.project_slug }}") @task