mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
convert to docker action
This commit is contained in:
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)
|
||||||
Reference in New Issue
Block a user