Skip to content

Add multi-platform builds#175

Merged
stuartleeks merged 26 commits intodevcontainers:mainfrom
natescherer:feature/multiple-architectures
Nov 16, 2022
Merged

Add multi-platform builds#175
stuartleeks merged 26 commits intodevcontainers:mainfrom
natescherer:feature/multiple-architectures

Conversation

@natescherer
Copy link
Contributor

Hello!
This PR adds a platform input to both the GitHub Action and AzDO Task to allow mutli-platform builds. I've tested each successfully. I've also done my best to minimally modify the structure of the action/task.

Fixes part of #151.

Please let me know if you have any questions/changes!

@natescherer natescherer requested review from a team and stuartleeks as code owners October 19, 2022 05:12
@natescherer natescherer changed the title Add mutli-platform builds Add multi-platform builds Oct 20, 2022
@natescherer
Copy link
Contributor Author

natescherer commented Oct 25, 2022

Not sure why that test is failing? I've run build-local.sh multiple times and it doesn't show any changes, but the CI build test shows uncommitted changes to azdo-task/DevcontainersCi/dist/index.js.

@stuartleeks
Copy link
Collaborator

That's odd! I just grabbed the code and ran build-local.sh on my machine and pushed a commit with the change.

@stuartleeks
Copy link
Collaborator

/test 74be82

@github-actions
Copy link

🤖 pr-bot 🤖

⚠️ When specifying a commit SHA it must be at least 7 characters (received 74be82)

(in response to this comment from @stuartleeks)

@stuartleeks
Copy link
Collaborator

/test 74be822

@github-actions
Copy link

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/devcontainers/ci/actions/runs/3345799182

(in response to this comment from @stuartleeks)

@stuartleeks
Copy link
Collaborator

Thanks @natescherer - this looks really interesting.

Based on the discussion in #150, it looks as though the platform input can be used alongside runCmd, is that correct?

It would be great to have a test that includes platform and runCmd to ensure that combination is validated going forwards.

@stuartleeks
Copy link
Collaborator

/test 07ef2d2

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

⚠️ Cannot run tests as PR is not mergeable. Ensure that the PR is open and doesn't have any conflicts.

(in response to this comment from @stuartleeks)

@stuartleeks
Copy link
Collaborator

/test 07ef2d2

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

⚠️ The specified SHA 07ef2d2 is not the latest commit on the PR. Please validate the latest commit and re-run /test

(in response to this comment from @stuartleeks)

@stuartleeks
Copy link
Collaborator

/test 003715a

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/devcontainers/ci/actions/runs/3387067256

(in response to this comment from @stuartleeks)

Copy link
Collaborator

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Didn't do a detailed review, but left a comment.

@natescherer
Copy link
Contributor Author

Looks like that latest merge from main meant build-local.sh needed ran again, which was blocking tests.

@stuartleeks
Copy link
Collaborator

/test 8e5e453

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/devcontainers/ci/actions/runs/3388696190

(in response to this comment from @stuartleeks)

@stuartleeks
Copy link
Collaborator

/test 1227e56

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/devcontainers/ci/actions/runs/3388841333

(in response to this comment from @stuartleeks)

@natescherer
Copy link
Contributor Author

Oops, it looks like I forgot to revert my AzDO task version bump from when I was testing out the extension, sorry about that. This should get past that build bug.

@stuartleeks
Copy link
Collaborator

/test c2ec738

@github-actions
Copy link

github-actions bot commented Nov 5, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/devcontainers/ci/actions/runs/3399443056

(in response to this comment from @stuartleeks)

Copy link
Collaborator

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@stuartleeks stuartleeks left a comment

Choose a reason for hiding this comment

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

looks good - thanks for the contribution!

@stuartleeks stuartleeks merged commit 4c62d3f into devcontainers:main Nov 16, 2022
@Chuxel
Copy link
Member

Chuxel commented Nov 16, 2022

Thanks for this! Really appreciate the multi-repo PRs and thought you put into it!

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.

4 participants