Skip to content

Commit de3258c

Browse files
authored
alpine: add nodejs & build multi-arch (#4380)
1 parent 79e96bc commit de3258c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ${BASE}
55
RUN apk update
66

77
# common
8-
RUN apk add bash build-base cmake curl git icu lsb-release-minimal sudo tar wget
8+
RUN apk add bash build-base cmake curl git icu lsb-release-minimal nodejs npm sudo tar wget
99

1010
# sentry-native
1111
RUN apk add curl-dev docker-cli libunwind-dev libunwind-static linux-headers openssl-dev zlib-dev xz-dev xz-static

.github/workflows/alpine.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ jobs:
3131
username: ${{ github.actor }}
3232
password: ${{ secrets.GITHUB_TOKEN }}
3333

34-
- name: Build ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }}
35-
run: docker build --build-arg BASE=alpine:${{ matrix.version }} -t ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} .
36-
working-directory: .github/alpine
34+
- uses: docker/setup-qemu-action@v3
35+
- uses: docker/setup-buildx-action@v3
3736

38-
- name: Push ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }}
39-
run: docker push ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }}
40-
working-directory: .github/alpine
37+
- uses: docker/build-push-action@v6
38+
with:
39+
push: true
40+
platforms: linux/amd64,linux/arm64
41+
tags: ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }}
42+
context: .github/alpine
43+
build-args: |
44+
BASE=alpine:${{ matrix.version }}

0 commit comments

Comments
 (0)