-
Notifications
You must be signed in to change notification settings - Fork 56
56 lines (46 loc) · 1.44 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# GitHub actions workflow which builds and publishes the docker images.
name: Build and deploy Dendrite docker images
on:
push:
branches: ["dendrite"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-dependent-images:
name: "Build sytest-${{ matrix.dockerfile }}:${{ matrix.sytest_image_tag }}"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- sytest_image_tag: buster
dockerfile: dendrite
tags: "matrixdotorg/sytest-dendrite:latest"
build_args: "SYTEST_IMAGE_TAG=buster"
steps:
- name: Set up QEMU
id: QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Inspect builder
run: docker buildx inspect
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
pull: true
push: true
platforms: linux/amd64,linux/arm64
labels: "gitsha1=${{ github.sha }}"
file: docker/${{ matrix.dockerfile }}.Dockerfile
build-args: ${{ matrix.build_args }}
tags: ${{ matrix.tags }}