Skip to content

Commit 4073175

Browse files
authored
fix: alpine assets uploading (#1949)
Signed-off-by: Shurtu-gal <ashishpadhy1729@gmail.com>
1 parent 870eb6b commit 4073175

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.changeset/nice-countries-know.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@asyncapi/cli': patch
3+
---
4+
5+
- Alpine Releases have been fixed now.
6+
- Smaller docker image sizes and pruned dependencies.

.github/workflows/upload-release-assets.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,23 @@ jobs:
5050
container: ${{ matrix.container }}
5151

5252
steps:
53+
- name: Install base tools for alpine container
54+
if: matrix.container == 'node:20-alpine'
55+
run: |
56+
apk add --no-cache bash git python3 make g++ perl-utils xz
57+
5358
- name: Checkout repository
5459
uses: actions/checkout@v4
60+
61+
# Needed to avoid "fatal: detected dubious ownership in repository" error when using alpine container
62+
- name: Mark GitHub workspace as safe
63+
if: matrix.container == 'node:20-alpine'
64+
run: |
65+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
66+
5567
5668
- name: Check package-lock version
69+
if: matrix.container == ''
5770
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
5871
id: lockversion
5972

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

66-
- name: Install dependencies in Alpine
67-
if: matrix.container == 'node:20-alpine'
68-
run: |
69-
apk add --no-cache git python3 make g++
70-
7179
- if: matrix.npm_script == 'pack:windows'
7280
name: install nodejs for windows
7381
uses: actions/setup-node@v4

scripts/releasePackagesRename.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function renameTar({version, name, sha, isAlpine}) {
4646
const tarDirectory = path.resolve(dist, 'tar');
4747
await createDirectory(tarDirectory);
4848

49-
const fileName = isAlpine ? 'asyncapi-alpine.tar.gz' : 'asyncapi.tar.gz';
49+
const fileName = isAlpine ? 'asyncapi.alpine.tar.gz' : 'asyncapi.tar.gz';
5050
const newPath = path.resolve(tarDirectory, fileName);
5151
await checkAndRenameFile(generatedPath, newPath);
5252
}

0 commit comments

Comments
 (0)