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

Adding Github (actions) support #414

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

eladiw
Copy link

@eladiw eladiw commented May 25, 2021

Adding Github actions support.
Based on the Gitlab version.

A matching Bedrock PR which builds on this PR : microsoft/bedrock#1457

Note:
In the Gitlab version secrets and variables were used. For Github there, variables are not an option, so every value is stored as a secret.

All Submissions:


  • [YES] Have you followed the guidelines in our Contributing document?
  • [YES] Have you added an explanation of what your changes do and why you'd like us to include them?
  • [YES] I have updated the documentation accordingly.
  • [YES/NO/NA] I have added tests to cover my changes.
  • [YES/NO/NA] All new and existing tests passed.
  • [YES] My code follows the code style of this project.
  • [YES] I ran lint checks locally prior to submission.
  • [YES] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

What is the current behavior?


Github actions is not supported

Issue Number: N/A

What is the new behavior?


Adding Github acctions support

Does this introduce a breaking change?


  • [NO]

Any relevant logs, error output, etc?


(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Other information


@eladiw eladiw force-pushed the feature/add_github_support branch from 713de09 to 3790a07 Compare May 25, 2021 17:43
@eladiw eladiw marked this pull request as ready for review May 27, 2021 09:43
@eladiw eladiw requested a review from erikschlegel as a code owner May 27, 2021 09:43
Copy link
Contributor

@erikschlegel erikschlegel left a comment

Choose a reason for hiding this comment

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

This is great work @eladiw. Thanks for putting in the time for this PR. It's great to see us offer support for a new orchestrator provider.

terraform state list | grep random_password | xargs -L 1 terraform taint
terraform plan

# Note: this command might fail due to the rapid create/delete on Azure resources. If it fails, re-running it
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious on why this would fail?

Copy link
Author

Choose a reason for hiding this comment

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

copied as is from the Gitlab readme file. I think this can be removed from both versions. wdyt?

* A shell environment, preferrably bash
* A Github personal access token. Instructions for generating one can be found [here](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token). The token will need the `workflow` permission.
* An Azure subscription

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAICT, the terraform template that's being run is also creating an AAD App and SP. If that's the case then you may want to mention the developer will need owner level permissions on the az sub.

Copy link
Author

Choose a reason for hiding this comment

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

updated

@eladiw
Copy link
Author

eladiw commented Jun 7, 2021

@erikschlegel updated.

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.

2 participants