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

Fix notation of named stages in multi-stage docker builds #1809

Merged
merged 3 commits into from
Mar 8, 2022

Conversation

bartbroere
Copy link
Contributor

AS can be used as a keyword to name a stage in a multi-stage Docker build, but it isn't formatted correctly yet.

Before this PR:
FROM golang:1.16 AS builder

After this PR:
FROM golang:1.16 AS builder

Copy link
Collaborator

@tancnle tancnle left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @bartbroere ❤️. The PR looks great to me 👍🏼 I have left a tiny suggestion. Please let me know what you think 🙏🏼

lib/rouge/lexers/docker.rb Show resolved Hide resolved
@tancnle tancnle added the author-action The PR has been reviewed but action by the author is needed label Mar 3, 2022
@tancnle
Copy link
Collaborator

tancnle commented Mar 8, 2022

Thanks @bartbroere 🚢 🚀

@tancnle tancnle merged commit 8310e1c into rouge-ruby:master Mar 8, 2022
razetime pushed a commit to razetime/rouge that referenced this pull request Jun 30, 2022
…#1809)

* Fix notation of named stages in multi-stage docker builds

* Check for whitespace as well to mitigate "AS" appearing in image names

* Add multi-stage builder pattern to sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-action The PR has been reviewed but action by the author is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants