Skip to content

Commit

Permalink
ISSUE #1
Browse files Browse the repository at this point in the history
* Externalize docker file generation.
  • Loading branch information
Sergio García Prado committed Dec 13, 2021
1 parent 97d6ef1 commit 03478b1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/template-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
- name: Build Microservice Python Package Manager Poetry Template
run: tar -czvf microservice-python-package-manager-poetry.tar.gz -C ${{ github.workspace }}/microservice/language/python/package-manager/poetry .

- name: Build Microservice Python Package Manager Poetry Template
- name: Build Microservice Python Package Manager Pip Template
run: tar -czvf microservice-python-package-manager-pip.tar.gz -C ${{ github.workspace }}/microservice/language/python/package-manager/pip .

- name: Build Microservice Python Deploy Docker Template
run: tar -czvf microservice-python-deploy-docker.tar.gz -C ${{ github.workspace }}/microservice/language/python/deploy/docker .

- name: Build Project Init Template
run: tar -czvf project-init.tar.gz -C ${{ github.workspace }}/project/init .

Expand All @@ -34,5 +37,6 @@ jobs:
microservice-python-skeleton.tar.gz
microservice-python-package-manager-poetry.tar.gz
microservice-python-package-manager-pip.tar.gz
microservice-python-deploy-docker.tar.gz
project-init.tar.gz
10 changes: 10 additions & 0 deletions microservice/language/python/containerization/docker/copier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_envops:
block_start_string: "{%"
block_end_string: "%}"
comment_start_string: "{#"
comment_end_string: "#}"
variable_start_string: "{{"
variable_end_string: "}}"
keep_trailing_newline: false

_templates_suffix: .jinja
7 changes: 7 additions & 0 deletions microservice/language/python/skeleton/copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ package_manager:
poetry: &poetry_url "{{ template_root }}/microservice-python-package-manager-poetry.tar.gz"
pip: "{{ template_root }}/microservice-python-package-manager-pip.tar.gz"
default: *poetry_url
deploy:
type: str
link: true
help: What deploy system do you want to use?
choices:
docker: &docker_url "{{ template_root }}/microservice-python-deploy-docker.tar.gz"
default: *docker_url

_envops:
block_start_string: "{%"
Expand Down

0 comments on commit 03478b1

Please sign in to comment.