mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-11 12:02:05 -05:00
feat: Run action on node20 (#25)
This commit is contained in:
parent
84052e2208
commit
e8af259fb1
8 changed files with 26 additions and 27 deletions
6
.github/workflows/directory.yml
vendored
6
.github/workflows/directory.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
.github/workflows/file.yml
vendored
4
.github/workflows/file.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
2
.github/workflows/package-action.yaml
vendored
2
.github/workflows/package-action.yaml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
- uses: pr-mpt/actions-merge-branch@v2
|
- uses: prompt/actions-merge-branch@v2
|
||||||
with:
|
with:
|
||||||
from: "origin/${{ env.source }}"
|
from: "origin/${{ env.source }}"
|
||||||
commit: false
|
commit: false
|
||||||
|
|
|
||||||
11
.github/workflows/platforms.yml
vendored
11
.github/workflows/platforms.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Load action build from cache
|
- name: Load action build from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -36,12 +36,15 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
uses: douglascamata/setup-docker-macos-action@main
|
uses: douglascamata/setup-docker-macos-action@main
|
||||||
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
- run: docker build -t example:${{ github.sha }} ./.github/tests
|
||||||
- run: npm install
|
- name: Load action build from cache
|
||||||
- run: npm run build
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: dist
|
||||||
|
key: build-${{ github.sha }}
|
||||||
- uses: ./
|
- uses: ./
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
.github/workflows/validate-tag.yaml
vendored
4
.github/workflows/validate-tag.yaml
vendored
|
|
@ -13,10 +13,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
||||||
- name: Test that the tagged commit includes `dist`
|
- name: Test that the tagged commit includes `dist`
|
||||||
uses: pr-mpt/actions-assert@v2
|
uses: prompt/actions-assert@v2
|
||||||
with:
|
with:
|
||||||
assertion: npm://@assertions/directory-exists
|
assertion: npm://@assertions/directory-exists
|
||||||
expected: dist
|
expected: dist
|
||||||
- if: failure()
|
- if: failure()
|
||||||
name: Delete invalid tag
|
name: Delete invalid tag
|
||||||
uses: pr-mpt/actions-delete-tag@v1
|
uses: prompt/actions-delete-tag@v1
|
||||||
|
|
|
||||||
20
README.md
20
README.md
|
|
@ -3,7 +3,7 @@
|
||||||
A GitHub Action for extracting files from a Docker Image.
|
A GitHub Action for extracting files from a Docker Image.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: shrink/actions-docker-extract@v2
|
- uses: shrink/actions-docker-extract@v3
|
||||||
with:
|
with:
|
||||||
image: "ghost:alpine"
|
image: "ghost:alpine"
|
||||||
path: "/var/lib/ghost/current/core/built/assets/."
|
path: "/var/lib/ghost/current/core/built/assets/."
|
||||||
|
|
@ -40,19 +40,19 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v1
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
repository: my-example-image
|
repository: my-example-image
|
||||||
tags: latest
|
tags: latest
|
||||||
- uses: shrink/actions-docker-extract@v2
|
- uses: shrink/actions-docker-extract@v3
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
image: my-example-image
|
image: my-example-image
|
||||||
path: /app/.
|
path: /app/.
|
||||||
- name: Upload Dist
|
- name: Upload Dist
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.extract.outputs.destination }}
|
path: ${{ steps.extract.outputs.destination }}
|
||||||
name: dist
|
name: dist
|
||||||
|
|
@ -68,20 +68,20 @@ jobs:
|
||||||
extract:
|
extract:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GHCR_PAT }}
|
password: ${{ secrets.GHCR_PAT }}
|
||||||
- uses: shrink/actions-docker-extract@v2
|
- uses: shrink/actions-docker-extract@v3
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/${{ github.repository }}:latest
|
image: ghcr.io/${{ github.repository }}:latest
|
||||||
path: /app/.
|
path: /app/.
|
||||||
- name: Upload Dist
|
- name: Upload Dist
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.extract.outputs.destination }}
|
path: ${{ steps.extract.outputs.destination }}
|
||||||
name: dist
|
name: dist
|
||||||
|
|
@ -94,8 +94,8 @@ tag. Any reference to this Action in a Workflow must use a [tag][tags] (mutable)
|
||||||
or the commit hash of a tag (immutable).
|
or the commit hash of a tag (immutable).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
✅ uses: shrink/actions-docker-extract@v2
|
✅ uses: shrink/actions-docker-extract@v3
|
||||||
✅ uses: shrink/actions-docker-extract@v2.0.0
|
✅ uses: shrink/actions-docker-extract@v3.0.0
|
||||||
✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6
|
✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6
|
||||||
❌ uses: shrink/actions-docker-extract@main
|
❌ uses: shrink/actions-docker-extract@main
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ outputs:
|
||||||
destination:
|
destination:
|
||||||
description: 'Destination of extracted file(s)'
|
description: 'Destination of extracted file(s)'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
branding:
|
branding:
|
||||||
icon: 'scissors'
|
icon: 'scissors'
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,6 @@
|
||||||
"lint": "eslint 'src/**.js' --fix",
|
"lint": "eslint 'src/**.js' --fix",
|
||||||
"commit": "npm run-script lint && npm run-script build"
|
"commit": "npm run-script lint && npm run-script build"
|
||||||
},
|
},
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/shrink/actions-document-sign.git"
|
|
||||||
},
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/shrink/actions-docker-extract/issues"
|
"url": "https://github.com/shrink/actions-docker-extract/issues"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue