diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a87beb --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/action.yml b/action.yml index 984c1e8..f8a9dd6 100644 --- a/action.yml +++ b/action.yml @@ -13,11 +13,13 @@ inputs: default: '' token: description: 'Set the private repository token (defaults to environment variable CODECOV_TOKEN)' - default: ${CODECOV_TOKEN} + default: 'chicken' branding: color: 'red' icon: 'umbrella' runs: - using: 'node12' - main: 'main.js' + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.token }} #plugin: 'checkout' \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..e49372a --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Exit if any subcommand fails +set -eu + +# execute codecov global +bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/main.js b/main.js deleted file mode 100644 index 648e422..0000000 --- a/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log('Hello World') \ No newline at end of file