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

WORKFLOWS-25: support sceptre resolvers in build #19

Merged
merged 3 commits into from
Jul 1, 2021

Conversation

tthyer
Copy link
Contributor

@tthyer tthyer commented Jul 1, 2021

The current github actions workflow uses a sceptre action which does not support custom resolvers. This is limits how we have come to use sceptre -- for example, we won't be able to use the ever-popular sceptre-ssm-resolver. I have use cases for using sceptre-cmd-resolver, so I have refactored the workflow to use the pipenv environment instead and forgo the sceptre action.

I also want to make more of a case for using pipenv in this way. It makes sense that you set up your dependencies file -- whether that is requirements.txt or Pipfile -- that can be used in any environment. In other words, it creates an environment that I can use to build whether I am developing or the build action is running on github. When we use the sceptre custom action, we're effectively departing from the simplicity of a single build environment.

This solves blocking issue WORKFLOWS-25.

@tthyer tthyer force-pushed the workflows-25_resolvers branch from bf1003e to 28b6f43 Compare July 1, 2021 20:58
@tthyer
Copy link
Contributor Author

tthyer commented Jul 1, 2021

@daisyhan97 Here's another PR that may interest you

Copy link
Contributor

@zaro0508 zaro0508 left a comment

Choose a reason for hiding this comment

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

looks fine in general, just had a few questions about pipenv packaing

@@ -4,10 +4,11 @@ verify_ssl = true
name = "pypi"

[packages]
sceptre = "2.4.0"
sceptre = "2.5.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't these be in dev-packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be in dev, but then the only contents of the Pipfile would be in dev.

- name: Install dependencies
run: |
python -m pip install pipenv
pipenv install
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be pipenv install --dev?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see above

@tthyer tthyer changed the title Workflows-25: support sceptre resolvers in build WORKFLOWS-25: support sceptre resolvers in build Jul 1, 2021
Copy link
Contributor

@BrunoGrandePhD BrunoGrandePhD left a comment

Choose a reason for hiding this comment

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

🚀

@tthyer tthyer merged commit e6c2bba into main Jul 1, 2021
@tthyer tthyer deleted the workflows-25_resolvers branch July 1, 2021 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants