Bump react-pdf from 7.7.3 to 9.1.1 in /ui #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build UI | |
on: | |
push: | |
paths-ignore: | |
- "aleph/**" | |
- "contrib/**" | |
- "helm/**" | |
- "mappings/**" | |
- "site/**" | |
- "docs/**" | |
- "requirements.txt" | |
- "requirements-dev.txt" | |
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}; | |
- name: Tag latest image | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/test-') | |
run: | | |
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; |