Skip to content

feat: generate HTML based on passed environment file#17

Draft
voltlol wants to merge 1 commit intoDonDebonair:mainfrom
voltlol:ploy-generate-html
Draft

feat: generate HTML based on passed environment file#17
voltlol wants to merge 1 commit intoDonDebonair:mainfrom
voltlol:ploy-generate-html

Conversation

@voltlol
Copy link
Copy Markdown

@voltlol voltlol commented Apr 16, 2023

This code generates the html file based on env yaml we use for ploy deployments.
It has couple of columns based on the data from env yaml file:

  • Type
  • Service Name
  • Version(has a reference link to github repository and commit based on hash)
  • Status
    For now status is just a green checkmark. I thought to work with ploy verify output to set a proper green checkmark or red cross for example if there is a miss match. But I haven't started to work on this yet as I don't have a complete flow understanding in my head.

To make it work I added to the test yaml file 2 new fields:

name: Test MyProduct Deployments
deployments:
  - cluster: cluster-nmae
    id: some-name
    repository: https://github.com/org/repo-name
    type: ecs
    version: a39a7c6a7c46481b46ceeb18d621dsg5fb1dd25a
    wait-for-minutes: 30
    wait-for-service-stability: true

In HTML I added Source logo and made a dark theme page with table, but I think it should not go within this PR to make a tool more agnostic. I leave it for now so maybe you want to try it yourself and see something more or less beautiful.

I'd like to get some feedback on a go code changes as I put everything into a generate.go to keep it simple and working :) I know you have a lots of suggestions so I can learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant