Skip to content

Commit 012185c

Browse files
authored
Merge pull request #71 from crazy-max/remove-limitation
Remove os limitation
2 parents 0760262 + 881cacd commit 012185c

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,34 @@ jobs:
7777
echo "Flags: ${{ steps.buildx2.outputs.flags }}"
7878
echo "Platforms: ${{ steps.buildx2.outputs.platforms }}"
7979
80+
error:
81+
runs-on: ubuntu-latest
82+
steps:
83+
-
84+
name: Checkout
85+
uses: actions/checkout@v2
86+
-
87+
name: Stop docker
88+
run: |
89+
sudo systemctl stop docker
90+
-
91+
name: Set up Docker Buildx
92+
id: buildx
93+
continue-on-error: true
94+
uses: ./
95+
-
96+
name: Check
97+
run: |
98+
echo "${{ toJson(steps.buildx) }}"
99+
if [ "${{ steps.buildx.outcome }}" != "failure" ] || [ "${{ steps.buildx.conclusion }}" != "success" ]; then
100+
echo "::error::Should have failed"
101+
exit 1
102+
fi
103+
-
104+
name: Dump context
105+
if: always()
106+
uses: crazy-max/ghaction-dump-context@v1
107+
80108
debug:
81109
runs-on: ubuntu-latest
82110
steps:

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ___
2828
* [Notes](#notes)
2929
* [BuildKit container logs](#buildkit-container-logs)
3030
* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot)
31-
* [Limitation](#limitation)
3231

3332
## Usage
3433

@@ -200,7 +199,3 @@ updates:
200199
schedule:
201200
interval: "daily"
202201
```
203-
204-
## Limitation
205-
206-
This action is only available for Linux [virtual environments](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-virtual-environments-and-hardware-resources).

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import * as stateHelper from './state-helper';
1010

1111
async function run(): Promise<void> {
1212
try {
13-
if (os.platform() !== 'linux') {
14-
core.setFailed('Only supported on linux platform');
15-
return;
16-
}
13+
core.startGroup(`Docker info`);
14+
await exec.exec('docker', ['version']);
15+
await exec.exec('docker', ['info']);
16+
core.endGroup();
1717

1818
const inputs: context.Inputs = await context.getInputs();
1919
const dockerConfigHome: string = process.env.DOCKER_CONFIG || path.join(os.homedir(), '.docker');

0 commit comments

Comments
 (0)