convert to docker action

This commit is contained in:
“ibrahim0814”
2019-08-06 14:02:11 -07:00
parent 8b22c3537a
commit f3f8338f33
4 changed files with 22 additions and 4 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM alpine:3.10
WORKDIR /app
COPY . /app
RUN apk add --no-cache curl bash git
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@@ -13,11 +13,13 @@ inputs:
default: '' default: ''
token: token:
description: 'Set the private repository token (defaults to environment variable CODECOV_TOKEN)' description: 'Set the private repository token (defaults to environment variable CODECOV_TOKEN)'
default: ${CODECOV_TOKEN} default: 'chicken'
branding: branding:
color: 'red' color: 'red'
icon: 'umbrella' icon: 'umbrella'
runs: runs:
using: 'node12' using: 'docker'
main: 'main.js' image: 'Dockerfile'
args:
- ${{ inputs.token }}
#plugin: 'checkout' #plugin: 'checkout'

7
entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Exit if any subcommand fails
set -eu
# execute codecov global
bash <(curl -s https://codecov.io/bash)

View File

@@ -1 +0,0 @@
console.log('Hello World')