Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

adds gradle action and modifies update-charts action - #9

Merged
JBAhire merged 10 commits into
mainfrom
adds-motr-actions
Jan 5, 2021
Merged

JBAhire merged 10 commits into
mainfrom
adds-motr-actions

Conversation

@JBAhire

@JBAhire JBAhire commented Jan 4, 2021 •

Copy link
Copy Markdown
Member

Description

adds custom actions for

  • gradle
  • updates validates-charts action & publish action to dockerised action
  • This removes requirement for us to publish helm-gcs-packager image as well as we are utilizing docker file here only but if we want to publish at any point we can push with this dockerfile.
    tested here: testing gradle action attribute-service#65

Comment thread validate-charts/entrypoint.sh Outdated

@aaron-steinfeld aaron-steinfeld left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the .DS_Store file from the commit too (may want to add a .gitignore to the repo)

Comment thread gradle/action.yml Outdated
Comment thread validate-charts/action.yml
Comment thread validate-charts/dockerfile Outdated
WORKDIR /usr/local/bin

# Install Helm, helm-gcs plugin, git and openssh-client
RUN apk --update --no-cache add curl git openssh-client && \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is no longer the main build image, it shouldn't need git or openssh.

Also nit: There's also no reason to clean up the image with the del/rm steps unless we're publishing it. Currently, it's just counterproductive since it's more work to do in each run (but maybe worth leaving since it's probably a very small amount of time and would be good if we ever decide to publish?).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather keep this in case we ever decide to publish. I have seen time it takes on test PR and it's in few seconds for complete execution so it's fine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine - but just to clarify they were two separate comments - git + openssh are never needed any more (they were needed by circleci, since the image was also responsible for doing the checkout), so those should be removed. The second comment was about the cleanup which is what can stay in case we ever publish.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree here that we should removegit + openssh.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing git is giving me error that git is required.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah - didn't notice that helm is using git for the plugin install. It probably doesn't need openssh if you're back in there since there's no auth happening, but who knows 🤷

Comment thread validate-charts/entrypoint.sh Outdated
Comment thread helm-gcs-publish/action.yml Outdated
Comment thread helm-gcs-publish/action.yml
Comment thread dockerfile
@@ -0,0 +1,23 @@
FROM ghcr.io/openzipkin/alpine:3.12.1

# Use latest recommended version here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this repo houses all custom actions and this is only used by two of them, can we either move this into a directory like helm-docker or name it something to indicate what it's function is (e.g. helm.dockerfile).? In other words, when the next Dockerfile comes along for another action, how do we disambiguate?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

@JBAhire
JBAhire merged commit 506b1e6 into main Jan 5, 2021
@JBAhire
JBAhire deleted the adds-motr-actions branch January 5, 2021 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants