diff --git a/.github/alpine/Dockerfile b/.github/alpine/Dockerfile index 51dc9765e0..d2d4fd8520 100644 --- a/.github/alpine/Dockerfile +++ b/.github/alpine/Dockerfile @@ -5,7 +5,7 @@ FROM ${BASE} RUN apk update # common -RUN apk add bash build-base cmake curl git icu lsb-release-minimal sudo tar wget +RUN apk add bash build-base cmake curl git icu lsb-release-minimal nodejs npm sudo tar wget # sentry-native RUN apk add curl-dev docker-cli libunwind-dev libunwind-static linux-headers openssl-dev zlib-dev xz-dev xz-static diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index 48c3944863..b871bf31c6 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -31,10 +31,14 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} - run: docker build --build-arg BASE=alpine:${{ matrix.version }} -t ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} . - working-directory: .github/alpine + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - - name: Push ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} - run: docker push ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} - working-directory: .github/alpine + - uses: docker/build-push-action@v6 + with: + push: true + platforms: linux/amd64,linux/arm64 + tags: ghcr.io/${{ github.repository_owner }}/sentry-dotnet-alpine:${{ matrix.version }} + context: .github/alpine + build-args: | + BASE=alpine:${{ matrix.version }}