Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 16
node-version-file: "package.json"
- run: npm install
- name: Build action (if not already built)
if: "!startsWith(github.ref, 'refs/heads/release')"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
name: Extract Contents of Directory from Example Image
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand All @@ -39,9 +39,9 @@ jobs:
name: Extract Nested Directory from Example Image
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand All @@ -62,9 +62,9 @@ jobs:
name: Extract Nested Contents of Directory from Example Image
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
name: Extract Example File From Root of Built Image
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand All @@ -34,9 +34,9 @@ jobs:
name: Extract Nexted Example File From Built Image
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
ref: "${{ env.release }}"
fetch-depth: 0
ssh-key: "${{ secrets.COMMIT_KEY }}"
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 16
node-version-file: "package.json"
- uses: prompt/actions-merge-branch@v2
with:
from: "origin/${{ env.source }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
name: Extract Example File on Ubuntu
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Load action build from cache
uses: actions/cache@v4
with:
Expand All @@ -35,9 +35,9 @@ jobs:
name: Extract Example File on macOS
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version-file: "package.json"
- name: Install Docker
uses: douglascamata/setup-docker-macos-action@main
- run: docker build -t example:${{ github.sha }} ./.github/tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
context: ./.github/tests
tags: my-example-image:latest
load: true
- uses: shrink/actions-docker-extract@v3
- uses: shrink/actions-docker-extract@v4
id: extract
with:
image: my-example-image:latest
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- uses: shrink/actions-docker-extract@v3
- uses: shrink/actions-docker-extract@v4
id: extract
with:
image: ghcr.io/${{ github.repository }}:latest
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
A GitHub Action for extracting files from a Docker Image.

```yaml
- uses: shrink/actions-docker-extract@v3
- uses: shrink/actions-docker-extract@v4
with:
image: "ghost:alpine"
path: "/var/lib/ghost/current/core/built/assets/."
```

:warning: Due to a breaking change in v3 of GitHub's actions/upload-artifact, a
low-impact breaking change has been made to v3.0.1 of this action. Please
see [issues#28](https://github.com/shrink/actions-docker-extract/issues/28) for
context and support.

## Inputs

| ID | Description | Required | Examples |
Expand Down Expand Up @@ -52,7 +47,7 @@ jobs:
with:
tags: my-example-image:latest
load: true
- uses: shrink/actions-docker-extract@v3
- uses: shrink/actions-docker-extract@v4
id: extract
with:
image: my-example-image:latest
Expand Down Expand Up @@ -81,7 +76,7 @@ jobs:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- uses: shrink/actions-docker-extract@v3
- uses: shrink/actions-docker-extract@v4
id: extract
with:
image: ghcr.io/${{ github.repository }}:latest
Expand All @@ -100,8 +95,8 @@ tag. Any reference to this Action in a Workflow must use a [tag][tags] (mutable)
or the commit hash of a tag (immutable).

```yaml
✅ uses: shrink/actions-docker-extract@v3
✅ uses: shrink/actions-docker-extract@v3.0.0
✅ uses: shrink/actions-docker-extract@v4
✅ uses: shrink/actions-docker-extract@v4.0.0
✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6
❌ uses: shrink/actions-docker-extract@main
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ outputs:
destination:
description: 'Destination of extracted file(s)'
runs:
using: 'node20'
using: 'node24'
main: 'dist/index.js'
branding:
icon: 'scissors'
Expand Down
34 changes: 23 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@actions/exec": "^1.0.4"
},
"devDependencies": {
"@zeit/ncc": "^0.22.3",
"@vercel/ncc": "^0.38.4",
"eslint": "^7.2.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
Expand Down
Loading