-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.01 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Docker
on:
pull_request:
merge_group:
jobs:
build-docker-images:
name: Build docker images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
imagetag: [dev, latest]
include:
- imagetag: dev
dockerfile: Dockerfile.dev
- imagetag: latest
dockerfile: Dockerfile
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build the ${{ matrix.imagetag }} image
uses: docker/build-push-action@v5
with:
push: false
load: true
file: ${{ matrix.dockerfile }}
tags: local-build:${{ matrix.imagetag }}
- uses: serlo/configure-repositories/actions/setup-node@main
- name: Run the ${{ matrix.imagetag }} docker image
run: yarn docker:run local-build:${{ matrix.imagetag }}
# TODO
# - name: Test the docker container ${{ matrix.imagetag }}
# run: yarn test:docker