[Closes #4] Adds image_registry as a template variable #5

Merged
androiddrew merged 1 commits from drew/registry-enhancement into master 1 year ago

@ -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",

@ -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:

@ -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

Loading…
Cancel
Save