Skip to content

build(deps): bump @sentry/react from 7.53.1 to 7.56.0 in /snuba/admin #4729

build(deps): bump @sentry/react from 7.53.1 to 7.56.0 in /snuba/admin

build(deps): bump @sentry/react from 7.53.1 to 7.56.0 in /snuba/admin #4729

Workflow file for this run

on:
pull_request:
push:
branches: [master]
jobs:
build:
strategy:
matrix:
arch: [amd64, arm64]
runs-on: ubuntu-latest
env:
IMG_CACHE: ghcr.io/getsentry/snuba:${{ matrix.arch }}-latest
IMG_VERSIONED: ghcr.io/getsentry/snuba:${{ matrix.arch }}-${{ github.sha }}
SHOULD_BUILD_ADMIN_UI: ${{ matrix.arch == 'arm64' && 'false' || 'true' }}
NODE_VERSION: 19.x
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{env.NODE_VERSION}}
if: matrix.arch == 'arm64'
- run: docker run --rm --privileged tonistiigi/binfmt --install arm64
if: matrix.arch == 'arm64'
- name: build admin UI
if: matrix.arch == 'arm64'
run: |
# allow copying the bundle to docker image
sed -i "s/snuba\/admin\/dist\/bundle.js\*//g" .dockerignore
# build bundle
cd snuba/admin
yarn install
yarn run build
- name: build
run: |
set -euxo pipefail
args=()
if docker pull -q "$IMG_CACHE"; then
args+=(--cache-from "$IMG_CACHE")
fi
docker buildx build \
"${args[@]}" \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg SHOULD_BUILD_ADMIN_UI="$SHOULD_BUILD_ADMIN_UI" \
--build-arg SHOULD_BUILD_RUST=false \
--platform linux/${{ matrix.arch }} \
--tag "$IMG_VERSIONED" \
--target application \
.
docker tag "$IMG_VERSIONED" "$IMG_CACHE"
- name: push
run: |
set -euxo pipefail
docker login --username '${{ github.actor }}' --password '${{ secrets.GITHUB_TOKEN }}' ghcr.io
docker push "$IMG_VERSIONED"
docker push "$IMG_CACHE"
if: github.event_name != 'pull_request'
multiarch:
if: github.event_name != 'pull_request'
needs: [build]
runs-on: ubuntu-latest
steps:
- run: |
set -euxo pipefail
docker login --username '${{ github.actor }}' --password '${{ secrets.GITHUB_TOKEN }}' ghcr.io
docker manifest create ghcr.io/getsentry/snuba:latest \
ghcr.io/getsentry/snuba:arm64-latest \
ghcr.io/getsentry/snuba:amd64-latest
docker manifest push ghcr.io/getsentry/snuba:latest