Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,21 @@ repo_name:
help: |
What is the name for your new repo?
Generally, use the package name with underscores replaced by dashes.
(default = your project name with '-' rather than '_')
default: "{{ project_name | replace('_', '-') }}"
validator: >-
{% if not (repo_name | regex_search('^[a-zA-Z0-9](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9])?$')) %}
{{ repo_name }} is not a valid repo name
{% endif %}

description:
type: str
help: Please provide a description of your project
placeholder: One line description of your module

github_org:
type: str
help: What is your github organisation?
help: What is your github organisation? (default = DiamondLightSource)
default: DiamondLightSource

author_name:
Expand All @@ -35,6 +37,6 @@ author_name:
author_email:
type: str
help: What is your email address?
placeholder: email@diamond.ac.uk
placeholder: your.name@diamond.ac.uk

_subdirectory: "src/copier_template"
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
archive:
none: {}
script:
image: ghcr.io/diamondlightsource/{% endraw %}{{repo_name}}{% raw %}-mounted-image:latest
image: ghcr.io/diamondlightsource/{% endraw %}{{repo_name}}{% raw %}-mounted-in-image:latest
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ from hera.workflows.archive import NoneArchiveStrategy
# Sets the default image, unless specified otherwise, to this.
# This image has access to the /workflow_definitions/mounted_files folder
# and was created with the included dockerfile.
# furthermore, this image will only be created on a push to main
# if locally testing, use "ghcr.io/diamondlightsource/python-interface-to-workflows-mounted-in-image:latest"
global_config.set_class_defaults( # pyright: ignore
Script,
image="ghcr.io/diamondlightsource/{% endraw %}{{repo_name}}{% raw %}-mounted-image:latest",
image="ghcr.io/diamondlightsource/{% endraw %}{{repo_name}}{% raw %}-mounted-in-image:latest",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
archive:
none: {}
script:
image: ghcr.io/diamondlightsource/python-interface-to-workflows-mounted-image:latest
image: ghcr.io/diamondlightsource/python-interface-to-workflows-mounted-in-image:latest
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# and was created with the included dockerfile.
global_config.set_class_defaults( # pyright: ignore
Script,
image="ghcr.io/diamondlightsource/python-interface-to-workflows-mounted-image:latest",
image="ghcr.io/diamondlightsource/python-interface-to-workflows-mounted-in-image:latest",
)


Expand Down
Loading