-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 931 Bytes
/
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
name: main
on:
push:
branches:
- '**'
jobs:
main:
name: main
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: create builder node
run: |
set -eo pipefail
docker buildx create --name node --platform linux/amd64,linux/arm64
docker buildx use node
- name: build images
run: |
set -eo pipefail
BUILDKIT_PROGRESS=plain docker buildx bake -f docker-compose.test.yml --set '*.platform=linux/amd64,linux/arm64' --no-cache
- name: load the machine image
run: |
set -eo pipefail
docker buildx build --platform $(docker system info --format '{{.OSType}}/{{.Architecture}}') -t gpaw-openmpi:latest --load .
- name: test the image
run: |
set -eo pipefail
docker compose -f docker-compose.ci.yml up --exit-code-from gpaw