-
Notifications
You must be signed in to change notification settings - Fork 61
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
Error: The environment variable ImageOS must be set ruby/setup-ruby action #52
Comments
Hi @everspader, thanks for your report. Could you share your yaml? |
This is my CI workflow. I'm currently using version name: project-ci
on:
pull_request:
jobs:
name: Detect changes
runs-on: ubuntu-latest
outputs:
docker: ${{ steps.changes.outputs.docker }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check modified source
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
docker:
- 'requirements.txt'
build-test-image:
needs: [detect-changes]
name: Build base test image
# Build a base docker image conditionally if previous job detected any change to requirements.txt
# ...
run-tests:
name: Run tests
runs-on: ubuntu-latest
container:
image: <my_image_from_previous_job>
credentials:
username: <username>
password: <password>
steps:
- name: Wait for base image to be built
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-name: 'Build base test image'
allowed-conclusions: success,skipped
- name: Checkout repository
uses: actions/checkout@v2
# ... |
Hi @everspader. I'll need some time to see this issue in detail. Apparently, some adjustments need to be done in order to use the last version of this action on some self-hosted runners. Please keep using the previous stable version (1.0.0) as it works for you and there are no new features in the last release but only support to macOS and Windows GH runners. |
It's happening to non alpine builds too. IE:
|
I'm running in the following error after the latest update of the action.
I think it's related to this in the new release.
because the ruby-setup action requires the
ImageOS
to be set for self-hosted runners.How can this be fixed?
Error logging:
The text was updated successfully, but these errors were encountered: