[Closes #3] Adds image_registry as a template variable

pull/5/head
Drew Bednar 1 year ago
parent 66f1df5809
commit c48d5ba13f

@ -5,7 +5,8 @@
"project_name": "python_app", "project_name": "python_app",
"project_slug": "{{ cookiecutter.project_name.lower().strip().replace(' ', '_').replace('-','_')}}", "project_slug": "{{ cookiecutter.project_name.lower().strip().replace(' ', '_').replace('-','_')}}",
"initial_dependencies": "", "initial_dependencies": "",
"description": "An templated Python project", "description": "A templated Python project",
"image_registry": "registry.runcible.io",
"open_source_license": [ "open_source_license": [
"MIT", "MIT",
"BSD-3-Clause", "BSD-3-Clause",

@ -33,8 +33,8 @@ steps:
password: password:
from_secret: automate_password from_secret: automate_password
dockerfile: Dockerfile dockerfile: Dockerfile
registry: registry.runcible.io registry: {{ cookiecutter.image_registry }}
repo: registry.runcible.io/{{ cookiecutter.project_slug }} repo: {{ cookiecutter.image_registry }}/{{ cookiecutter.project_slug }}
tags: tags:
- ${DRONE_COMMIT_SHA} - ${DRONE_COMMIT_SHA}
when: when:

@ -2,7 +2,7 @@ import os
from invoke import task 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 @task

Loading…
Cancel
Save