Skip to content

Commit

Permalink
build: Package action as dist with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 12, 2023
1 parent 01ea8f6 commit a0eaa32
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pr-mpt/actions-merge-branch@v2
- uses: prompt/actions-merge-branch@v2
with:
from: "origin/${{ env.source }}"
commit: false
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
Expand All @@ -36,12 +36,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Install Docker
uses: douglascamata/setup-docker-macos-action@main
- run: docker build -t example:${{ github.sha }} ./.github/tests
- run: npm install
- run: npm run build
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- uses: ./
id: extract
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
- name: Test that the tagged commit includes `dist`
uses: pr-mpt/actions-assert@v2
uses: prompt/actions-assert@v2
with:
assertion: npm://@assertions/directory-exists
expected: dist
- if: failure()
name: Delete invalid tag
uses: pr-mpt/actions-delete-tag@v1
uses: prompt/actions-delete-tag@v1
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/."
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ outputs:
destination:
description: 'Destination of extracted file(s)'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'scissors'
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"lint": "eslint 'src/**.js' --fix",
"commit": "npm run-script lint && npm run-script build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shrink/actions-document-sign.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/shrink/actions-docker-extract/issues"
Expand Down

0 comments on commit a0eaa32

Please sign in to comment.