tungbq / devops-toolkit

🐳 Container image for an all-in-one DevOps environment with popular tools like Ansible, Terraform, kubectl, Helm, AWS CLI, Azure CLI, Git, Python and more.
Apache License 2.0
34 stars 10 forks source link

ci: only run dockerfile-lint.yml when there has a change in Dockerfile #145

Closed tungbq closed 3 weeks ago

tungbq commented 3 months ago

Background: For now the dockerfile-lint.yml runs on every PRs, but not all PR related to the the Dockerfile. It leads to the duplication issue and watse Github Action resource.

Solution: Only run the dockerfile-lint.yml when there has a change in Dockerfile

Looking for contributor 🤚 ...

K-dash commented 3 weeks ago

@tungbq Hi! This is a wonderful project. I would love to contribute.

I thought specifying paths: ['Dockerfile'] for the pull_request event in dockerfile-lint.yml would solve the issue, so I created a PR.

If there are any mistakes in my understanding or any considerations I've missed, I would appreciate your feedback.

tungbq commented 3 weeks ago

Thank you @K-dash for your great contribution! Looking forward for future collaboration!

K-dash commented 3 weeks ago

@tungbq Thank you for merging the PRs!