feat: Run action on node20 (#25)

This commit is contained in:
sam 2023-09-12 23:21:29 +02:00 committed by GitHub
parent 84052e2208
commit e8af259fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 27 deletions

View file

@ -3,7 +3,7 @@
A GitHub Action for extracting files from a Docker Image.
```yaml
- uses: shrink/actions-docker-extract@v2
- uses: shrink/actions-docker-extract@v3
with:
image: "ghost:alpine"
path: "/var/lib/ghost/current/core/built/assets/."
@ -40,19 +40,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build Docker Image
uses: docker/build-push-action@v1
uses: docker/build-push-action@v5
with:
repository: my-example-image
tags: latest
- uses: shrink/actions-docker-extract@v2
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: my-example-image
path: /app/.
- name: Upload Dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract.outputs.destination }}
name: dist
@ -68,20 +68,20 @@ jobs:
extract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
- uses: shrink/actions-docker-extract@v2
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: ghcr.io/${{ github.repository }}:latest
path: /app/.
- name: Upload Dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract.outputs.destination }}
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).
```yaml
✅ uses: shrink/actions-docker-extract@v2
✅ uses: shrink/actions-docker-extract@v2.0.0
✅ uses: shrink/actions-docker-extract@v3
✅ uses: shrink/actions-docker-extract@v3.0.0
✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6
❌ uses: shrink/actions-docker-extract@main
```