commit
1a31adf02b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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: './'
|
||||
|
16
Dockerfile
16
Dockerfile
@ -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"]
|
@ -24,5 +24,5 @@ inputs:
|
||||
required: false
|
||||
default: '.'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
using: 'node12'
|
||||
main: 'start.js'
|
13
start.js
Normal file
13
start.js
Normal 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);
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user