-
Notifications
You must be signed in to change notification settings - Fork 734
54 lines (46 loc) · 1.52 KB
/
docker-ci.yaml
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
name: docker-ci
on:
pull_request:
jobs:
docker-ci:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: Checkout Code
uses: actions/checkout@v3
# # only needed for arm64 builds
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker metadata action
id: meta
uses: docker/metadata-action@v4
with:
images:
zammad-local
tags: |
type=raw,latest
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
# arm64 build takes up to 4 hours
platforms: linux/amd64 #,linux/arm64
push: false
tags: ${{ steps.meta.outputs.tags }}
outputs: type=docker,dest=/tmp/zammad-local.tar
- name: Checkout docker-compose files
uses: actions/checkout@v3
with:
repository: zammad/zammad-docker-compose
path: zammad-docker-compose
- name: Run docker-compose tests
run: |
cd zammad-docker-compose
docker load --input /tmp/zammad-local.tar
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.override-local.yml up --detach
docker cp .github/auto_wizard.json zammad-docker-compose_zammad-railsserver_1:/opt/zammad/var
.github/tests.sh