@kulla wip: Replay transactions on deadlock #3430
Workflow file for this run
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: Docker | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
build-docker-images: | |
name: Build docker images | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: [server, swr-queue-worker] | |
include: | |
- image: server | |
dockerfile: packages/server/docker/server/Dockerfile | |
- image: swr-queue-worker | |
dockerfile: packages/server/docker/swr-queue-worker/Dockerfile | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build the ${{ matrix.image }} image | |
uses: docker/build-push-action@v5 | |
with: | |
push: false | |
load: true | |
file: ${{ matrix.dockerfile }} | |
tags: api-${{ matrix.image }}-local-build:latest | |
- uses: serlo/configure-repositories/actions/setup-node@main | |
- name: Start containers | |
run: yarn start:containers | |
- name: Run the ${{ matrix.image }} docker image | |
run: yarn docker:run:${{ matrix.image }} | |
- name: Wait a little bit until the container was started | |
run: sleep 10 | |
- name: Test the docker container ${{ matrix.image }} | |
run: yarn test:docker:${{ matrix.image }} |