Virtual-environments: Environment variables: Add ImageOS companion to ImageVersion

Created on 1 Feb 2020  路  3Comments  路  Source: actions/virtual-environments

This request is suggested as a means of simplifying the inputs needed to some actions.

In https://github.com/actions/virtual-environments/tags, new images are tagged as below:
win16/20200120.1 ubuntu18/20200119.1

ImageVersion is the second part of the tag. Having the first part of the tag ('OS String') set to an environment variable ImageOS would be helpful. As to macOS, maybe just that?

One use is building separate packages/binaries for use on all platforms. Obviously, one can use 'runs-on:' or '${{ matrix.os }}' as an action input, but having the image name as an env variable would be simpler...

Note: submitted to 'GitHub Community Forums', which was then closed with the suggestion to post to Feedback form for GitHub Actions, which I did. I thought an issue might result in feedback/discussion...

Image administration Ubuntu Windows macOS

Most helpful comment

Hello, @MSP-Greg
We have added ImageOS for all GitHub images. Thank you for your help to provide new improvements.

All 3 comments

Hello, @MSP-Greg

To double check am i right it should be?

| Name |ImageOS | ImageVersion |
|---|---|---|
| Windows 2016 |win16 | 20200120.1 |
| Windows Server 2019 |win19 | 20200120.1 |
| Ubuntu 16.04 |ubuntu16 | 20200120.1|
| Ubuntu 18.04 |ubuntu18 | 20200120.1|
| macOS Catalina 10.15 |macOS | 20200120.1|

@al-cheb

Thanks.

Yes, that is what I intended.

Not sure about whether macOS needs any numeric suffix. If so, maybe macOS10.15 or macOS1015 ?

Hello, @MSP-Greg
We have added ImageOS for all GitHub images. Thank you for your help to provide new improvements.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orj picture orj  路  4Comments

adamsiembida picture adamsiembida  路  3Comments

trajano picture trajano  路  3Comments

zackijack picture zackijack  路  3Comments

frankieroberto picture frankieroberto  路  4Comments