mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 14:37:24 +00:00
convert to docker action
This commit is contained in:
parent
8b22c3537a
commit
f3f8338f33
4 changed files with 22 additions and 4 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal 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" ]
|
||||||
|
|
@ -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
7
entrypoint.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit if any subcommand fails
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# execute codecov global
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
1
main.js
1
main.js
|
|
@ -1 +0,0 @@
|
||||||
console.log('Hello World')
|
|
||||||
Loading…
Reference in a new issue