-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (37 loc) · 1.26 KB
/
main.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
---
name: CrateDB Docker images test
on: [push]
jobs:
multi-arch-build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [linux/amd64, linux/arm64]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Update CrateDB docker image version
run: |
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile
- name: Build CrateDB docker image
run: |
docker buildx build \
--platform ${{ matrix.arch }} \
--load \
--file ./Dockerfile . \
--tag crate/crate:ci_test
- name: Run Docker official images tests
run: |
git clone https://github.com/docker-library/official-images.git ~/official-images
~/official-images/test/run.sh crate/crate:ci_test