Merge pull request #29 from ad-m/skip-docker

Skip Docker in manifest
This commit is contained in:
Adam Dobrawy 2019-11-12 19:31:49 +01:00 committed by GitHub
commit 1a31adf02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 20 deletions

View File

@ -10,8 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build Docker image
run: docker build . --tag my-image-name:$(date +%s)
- name: Verify action syntax
# The action should not publish any real changes, but should succeed.
uses: './'

View File

@ -1,16 +0,0 @@
FROM alpine
LABEL "name"="github-push"
LABEL "maintainer"="Adam Dobrawy <git+push@jawnosc.tk>"
LABEL "version"="0.0.1"
LABEL "com.github.actions.name"="Git push for GitHub Actions"
LABEL "com.github.actions.description"="Runs 'git push' to GitHub in an Action"
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="green"
COPY README.md LICENSE start.sh /
RUN apk add --no-cache git
CMD ["/start.sh"]

View File

@ -24,5 +24,5 @@ inputs:
required: false
default: '.'
runs:
using: 'docker'
image: 'Dockerfile'
using: 'node12'
main: 'start.js'

13
start.js Normal file
View File

@ -0,0 +1,13 @@
const spawn = require('child_process').spawn;
const main = () => new Promise((resolve, reject) => {
const ssh = spawn('bash', ['start.sh'], { stdio: 'inherit' });
ssh.on('close', resolve);
ssh.on('error', reject);
});
main().catch(err => {
console.err(err);
console.err(err.stack);
process.exit(-1);
})