This repository was archived by the owner on May 7, 2026. It is now read-only.
Bump typescript from 5.9.3 to 6.0.3 in /web #1362
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "feature/*" | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - "main" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Build for test | |
| uses: docker/bake-action@v7.1.0 | |
| with: | |
| files: ./docker-bake.hcl | |
| load: true | |
| set: | | |
| api.cache-from=type=gha,scope=api | |
| web.cache-from=type=gha,scope=web | |
| api.cache-to=type=gha,mode=max,scope=api | |
| web.cache-to=type=gha,mode=max,scope=web | |
| web.tags=espressoweb | |
| api.tags=espressoapi | |
| - name: Start container | |
| run: docker run -d -p 80:80 --health-interval=5s --name web espressoweb | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v7 | |
| with: | |
| working-directory: e2e | |
| config: baseUrl=http://localhost | |
| - name: Check container health | |
| run: | | |
| docker inspect -f '{{.State.Health.Status}}' web | |
| [ "$(docker inspect -f '{{.State.Health.Status}}' web)" == "healthy" ] | |
| - name: Docker log | |
| if: always() | |
| run: docker logs web | |
| - name: Docker meta api | |
| id: meta-api | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/stefanschoof/espressoapi | |
| tags: | | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=ref,event=pr | |
| type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} | |
| bake-target: docker-metadata-action-api | |
| - name: Docker meta web | |
| id: meta-web | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/stefanschoof/espressoweb | |
| tags: | | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=ref,event=pr | |
| type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} | |
| bake-target: docker-metadata-action-web | |
| - name: Merge bake json into single file | |
| # workaround for https://github.com/docker/buildx/issues/756 | |
| # and https://github.com/docker/metadata-action/issues/124 | |
| run: jq --slurp '.[0] * .[1]' ${{ steps.meta-web.outputs.bake-file }} ${{ steps.meta-api.outputs.bake-file }} > docker-bake.json | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Push Build | |
| uses: docker/bake-action@v7.1.0 | |
| with: | |
| push: ${{ github.event_name != 'pull_request' }} |