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

allow specifiying custom image url #13

Closed
wants to merge 1 commit into from

Conversation

epsilon-0
Copy link
Contributor

Signed-off-by: Aisha Tammy floss@bsd.ac

First time working on a github action, so may have made some mistakes.
This is in conjunction with the PR to build OpenBSD snapshot images on the openbsd-builder.

src/action/input.ts Outdated Show resolved Hide resolved
src/action/input.ts Outdated Show resolved Hide resolved
@jacob-carlborg
Copy link
Contributor

There needs to be a test. I probably need to create a new repository containing a VM image.

@jacob-carlborg
Copy link
Contributor

Since this is TypeScript, the code needs to be compiled to JavaScript. You need to run npm run all and commit all changed files.

Copy link
Contributor

@jacob-carlborg jacob-carlborg left a comment

Choose a reason for hiding this comment

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

See comments.

@epsilon-0
Copy link
Contributor Author

Addressed all the comments and have updated the PR.

@jacob-carlborg
Copy link
Contributor

Please update the readme and the changelog as well.

@epsilon-0
Copy link
Contributor Author

added

const result = await cache.downloadTool(
this.operatingSystem.virtualMachineImageUrl
)
const imageURL = `this.input.imageURL !== '' ? this.input.imageURL : this.operatingSystem.virtualMachineImageUrl`
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right. The whole expression on the right hand side is a string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, yes you are right.
Fixed.

Signed-off-by: Aisha Tammy <floss@bsd.ac>
@jacob-carlborg
Copy link
Contributor

I've created a new repository for a custom VM image [1]. Could you please add a test for that?

[1] https://github.com/cross-platform-actions/test-custom-image-builder/releases/tag/v1.0.0

@jacob-carlborg
Copy link
Contributor

Merged in: 12af1e9.

korli added a commit to korli/action that referenced this pull request Mar 15, 2024
Release 0.18.0

Added
- Add support for custom image URLs ([cross-platform-actions#13](cross-platform-actions#13))
- Add architecture alias for x86-64: x64 ([cross-platform-actions#58](cross-platform-actions#58))
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