-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide ci and container image #3431
provide ci and container image #3431
Conversation
What else do i need to get into production? |
Thanks for this, and sorry it's take me so long to get to it. I can defo pick this up and finish off all the internal commitlint stuff. I have created a docker hub account to push this to and set up the circle ci our end. I do have some queries about the docker file.
This is the Dockerfile I have been looking at, heavily inspired by yours. DockerfileFROM node:18-buster AS builder
WORKDIR /src
COPY . ./
RUN yarn install && yarn build
# Commit lint CLI packages
RUN npm pack @commitlint/cli
RUN npm pack @commitlint/config-validator
RUN npm pack @commitlint/ensure
RUN npm pack @commitlint/execute-rule
RUN npm pack @commitlint/format
RUN npm pack @commitlint/is-ignored
RUN npm pack @commitlint/lint
RUN npm pack @commitlint/load
RUN npm pack @commitlint/message
RUN npm pack @commitlint/parse
RUN npm pack @commitlint/read
RUN npm pack @commitlint/resolve-extends
RUN npm pack @commitlint/rules
RUN npm pack @commitlint/to-lines
RUN npm pack @commitlint/top-level
RUN npm pack @commitlint/types
# Default commitlint config
RUN npm pack @commitlint/config-conventional
FROM node:18-buster
COPY --from=builder /src/*.tgz ./
RUN npm install -g *.tgz
RUN rm ./*.tgz I think the next steps for this is for me to take this branch and bring it under the commitlint repo. This way, we will be able to use the docker credentials to test pushing on a separate branch. Is that OK with you? |
Same here, sorry for my late response.
Why, just use ghcr like i did?!
Okey.
I will add these changes.
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#entrypoint
Sure, but first i will incorporate your review comments. |
Done. |
This is cool, I am still not sure about using GCP for container hosting. I always thought that you needed to pay for there container hosting. |
@AdeAttwood GHCR is GitHub Container Registry, not GCR (GCP Container Registry). |
Really sorry, my bad. I have had a go at setting this up and have hit a couple of issues.
|
We definitely need help from a org maintainer.
|
so you guys go now with github actions? #3549 i could migrate the mr, if you're still interested. |
Thanks @kaiehrhardt , tbh I'm as bit lost when it comes to permissions and contacting org maintainers. |
We don't need any special creds, because it's build-in. Changes are done. Tags look like this. Test: https://github.com/kaiehrhardt/commitlint/actions/runs/4564227536 |
ping @escapedcat |
1 similar comment
ping @escapedcat |
Sorry @kaiehrhardt @kaiehrhardt would you be able to maintain this in the future? I.e. if something like this needs tp be updated? |
@escapedcat @kaiehrhardt this probably should be parametrized using |
nah hardcoded is ok -> fixed with dep automation https://github.com/conventional-changelog/commitlint/blob/2b5def1a2eb84053f13d2aae4b59d2d348ff3dd9/.github/dependabot.yml
Just tag me, if you need help in a issue or pr. Maybe add some CODEOWNERS (https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) and add me there. |
hm, maybe we don't need dependabot, since you use renovate https://github.com/conventional-changelog/commitlint/blob/master/package.json#L41-L56. Renovate should autodetect the Dockerfile. |
Hi all, everything looks cool with this and I can't see any reason this cant be merged, the only thing I am concert about with this is host on GitHub and being actually able to use it. I pushed the hello world image to |
Error response from daemon: denied
|
@kaiehrhardt this is what I tried before #3431 (comment), I don't know how we can get hold of someone who can @escapedcat any ideas. |
Ping |
Hey @kaiehrhardt , sorry, nothing new from my side... I wrote bcoe because he might be able able to help with the org settings but no reply so far. Do we have any alternatives? |
Hey @escapedcat
|
Coule be done here I guess: Let's try this? What should I add there? |
dockerhub username and token
|
@AdeAttwood I guess you created this, right?: https://hub.docker.com/u/commitlint |
@AdeAttwood @escapedcat any news here? |
So far not :( |
@escapedcat should we go with a new account to get this finally merged? |
Yeah, will create a new one and get back to you |
@AdeAttwood please merge when you're good with this |
No, why is building form EVERY tag and EVERY branch? This should be built only for releases and “nightly” master builds. |
Added #3674 to fix that. |
Description
TODOs:
Maintainer TODO:
Motivation and Context
#3423
Usage examples
please refer docs
How Has This Been Tested?
ci test run https://app.circleci.com/pipelines/github/kaiehrhardt/commitlint
Types of changes
Checklist: