Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes committed Sep 27, 2020
1 parent 2181ff5 commit ab5ab7b
Show file tree
Hide file tree
Showing 10 changed files with 57,999 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.18.4
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NCC = ./node_modules/@vercel/ncc/dist/ncc/cli.js

build:
rm -rf dist
$(NCC) build index.js --license LICENSE

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# cached-docker-build-action
# cached-docker-build-action


--pull Always attempt to pull a newer version of the image
23 changes: 23 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Cached Docker Build"
description: "Use Github Action's cache to store and retrieve docker images"

branding:
icon: "layers"
color: "red"

inputs:
args:
description: "docker build args"
required: true
cache_key:
description: "Cache key"
required: true
expires:
description: "Set expiration for cache (example '12 hours' or '3 days', ...)"

# ${{runner.temp}} directory is guaranteed to be empty at the start of each job, even on self-hosted runners.

runs:
using: "node12"
main: "dist/index.js"

1,219 changes: 1,219 additions & 0 deletions dist/LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit ab5ab7b

Please sign in to comment.