Skip to content

Bump react-pdf from 5.7.2 to 7.3.2 in /ui #1257

Bump react-pdf from 5.7.2 to 7.3.2 in /ui

Bump react-pdf from 5.7.2 to 7.3.2 in /ui #1257

Workflow file for this run

name: Build UI
on:
push:
paths-ignore:
- "aleph/**"
- "contrib/**"
- "helm/**"
- "mappings/**"
- "site/**"
- "docs/**"
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
run: echo "ALEPH_SECRET=batman\n" >> aleph.env
- name: Build development image
run: |
docker build -t ghcr.io/alephdata/aleph-ui:${GITHUB_SHA} ui
docker tag ghcr.io/alephdata/aleph-ui:${GITHUB_SHA} ghcr.io/alephdata/aleph-ui:latest
- name: Check code formatting
run: make format-check-ui
- name: Run linter
run: make lint-ui
- name: Run tests
run: make test-ui
- name: Build production image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: docker build -t ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} -f ui/Dockerfile.production ui
- name: Push docker image (tagged)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
export ALEPH_TAG=${GITHUB_REF/refs\/tags\//}
docker tag ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG};
docker push ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG};
docker tag ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} ghcr.io/alephdata/aleph-ui-production:latest;
docker push ghcr.io/alephdata/aleph-ui-production:latest;