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
6 changes: 6 additions & 0 deletions .changeset/nice-countries-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@asyncapi/cli': patch
---

- Alpine Releases have been fixed now.
- Smaller docker image sizes and pruned dependencies.
18 changes: 13 additions & 5 deletions .github/workflows/upload-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,23 @@ jobs:
container: ${{ matrix.container }}

steps:
- name: Install base tools for alpine container
if: matrix.container == 'node:20-alpine'
run: |
apk add --no-cache bash git python3 make g++ perl-utils xz

- name: Checkout repository
uses: actions/checkout@v4

# Needed to avoid "fatal: detected dubious ownership in repository" error when using alpine container
- name: Mark GitHub workspace as safe
if: matrix.container == 'node:20-alpine'
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"


- name: Check package-lock version
if: matrix.container == ''
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion

Expand All @@ -63,11 +76,6 @@ jobs:
with:
node-version: "${{ steps.lockversion.outputs.version }}"

- name: Install dependencies in Alpine
if: matrix.container == 'node:20-alpine'
run: |
apk add --no-cache git python3 make g++

- if: matrix.npm_script == 'pack:windows'
name: install nodejs for windows
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion scripts/releasePackagesRename.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function renameTar({version, name, sha, isAlpine}) {
const tarDirectory = path.resolve(dist, 'tar');
await createDirectory(tarDirectory);

const fileName = isAlpine ? 'asyncapi-alpine.tar.gz' : 'asyncapi.tar.gz';
const fileName = isAlpine ? 'asyncapi.alpine.tar.gz' : 'asyncapi.tar.gz';
const newPath = path.resolve(tarDirectory, fileName);
await checkAndRenameFile(generatedPath, newPath);
}
Expand Down
Loading