Skip to content

Commit 1a31adf

Browse files
authored
Merge pull request #29 from ad-m/skip-docker
Skip Docker in manifest
2 parents 68af989 + 0dbc0a9 commit 1a31adf

4 files changed

Lines changed: 15 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v1
13-
- name: Build Docker image
14-
run: docker build . --tag my-image-name:$(date +%s)
1513
- name: Verify action syntax
1614
# The action should not publish any real changes, but should succeed.
1715
uses: './'

Dockerfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ inputs:
2424
required: false
2525
default: '.'
2626
runs:
27-
using: 'docker'
28-
image: 'Dockerfile'
27+
using: 'node12'
28+
main: 'start.js'

start.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const spawn = require('child_process').spawn;
2+
3+
const main = () => new Promise((resolve, reject) => {
4+
const ssh = spawn('bash', ['start.sh'], { stdio: 'inherit' });
5+
ssh.on('close', resolve);
6+
ssh.on('error', reject);
7+
});
8+
9+
main().catch(err => {
10+
console.err(err);
11+
console.err(err.stack);
12+
process.exit(-1);
13+
})

0 commit comments

Comments
 (0)