Skip to content
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

ci: change base image to fix commitlint error #426

Closed

Conversation

SecretBase
Copy link
Contributor

Reopen the PR. Sorry for the noise.

#424

@virtuoushub
@guastallaigor

instead of waiting for the upstream image updated. I decide to spend some time to run my own image. So others everyone can moving forward.

I fork the upstream base image and make some changes same as @virtuoushub opened PR for the upstream.

https://github.com/SecretBase/circleci-commitlint-step
https://hub.docker.com/r/secretbase/circleci-commitlint/tags

jobs:
commitlint:
docker:
- image: williamlauze/circleci-commitlint:latest
- image: secretbase/circleci-commitlint:1.0.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the fixed version here to prevent breaking changes, If I mess up anything when updating the code.

working_directory: ~/app

environment:
CIRCLE_COMPARE_URL: << pipeline.project.git_url >>/compare/<< pipeline.git.base_revision >>..<<pipeline.git.revision>>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Digging the source code at the upstream
https://github.com/wilau2/circleci-commitlint-step/blob/master/commitlint_range.sh#L28

CIRCLE_COMPARE_URL is not available in circle ci version 2.1 anymore
https://circleci.com/docs/2.0/env-vars/
https://discuss.circleci.com/t/is-circle-compare-url-still-a-thing/33366

So I just added an env var as example show at circle ci docs.
Hope this fix those noise when running commitlint ci job

https://circleci.com/docs/2.0/pipeline-variables/

wilau2/circleci-commitlint-step#13

@guastallaigor guastallaigor added bug Something isn't working devops CI, build, and deployment issues waiting - reviewer Waiting for the reviewer to address some situations labels Jun 1, 2020
@guastallaigor guastallaigor requested a review from a team June 1, 2020 18:51
@SecretBase SecretBase force-pushed the ci/commitlint-fix branch from e844a6e to 0cae71b Compare June 2, 2020 14:15
@SecretBase SecretBase force-pushed the ci/commitlint-fix branch from 0cae71b to e24662c Compare June 2, 2020 14:28
@SecretBase
Copy link
Contributor Author

@virtuoushub OMG it work. 😭

Thank you everyone effort. Hope this can getting merge soon

@virtuoushub
Copy link

@SecretBase great job! Thanks for taking the initiative on publishing the new docker image. Hope you do not mind, I incorporated this PR into #418 ( https://github.com/nostalgic-css/NES.css/pull/418/files#diff-1d37e48f9ceff6d8030570cd36286a61R17-R20 ) to get the commitlint step to pass there.

@SecretBase
Copy link
Contributor Author

@SecretBase great job! Thanks for taking the initiative on publishing the new docker image. Hope you do not mind, I incorporated this PR into #418 ( https://github.com/nostalgic-css/NES.css/pull/418/files#diff-1d37e48f9ceff6d8030570cd36286a61R17-R20 ) to get the commitlint step to pass there.

No problem. I close mine

@SecretBase SecretBase closed this Jun 2, 2020
@SecretBase SecretBase deleted the ci/commitlint-fix branch June 2, 2020 14:41
@guastallaigor guastallaigor removed the waiting - reviewer Waiting for the reviewer to address some situations label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devops CI, build, and deployment issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants