ci: split unstable build and test workflows (#1601)
* ci: split unstable build and test workflows In order to make multi-arch builds the buildx action will use the docker-container driver, which does not support loading images, and thus the jvb image won't be built based on the "base-java" image, in turn based on the "base" image. That works only when pushing. If we setup buildx to use the "docker" driver it will just build for the current architecture, but it will properly load images and the base images will be used correctly. One downside is that jobs cannot be run in parallel, but it seems to be Fast Enough (R) for now.
This commit is contained in:
committed by
GitHub
parent
603d461179
commit
b3abfc0b0b
84
.github/workflows/ci.yml
vendored
Normal file
84
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
name: CI Test Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
driver: docker
|
||||
|
||||
- name: Build base
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./base
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/base:latest
|
||||
build-args: |
|
||||
JITSI_RELEASE=unstable
|
||||
|
||||
- name: Build base-java
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./base-java
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/base-java:latest
|
||||
|
||||
- name: Build jibri
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./jibri
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/jibri:latest
|
||||
|
||||
- name: Build jicofo
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./jicofo
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/jicofo:latest
|
||||
|
||||
- name: Build jigasi
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./jigasi
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/jigasi:latest
|
||||
|
||||
- name: Build jvb
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./jvb
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/jvb:latest
|
||||
|
||||
- name: Build prosody
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./prosody
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/prosody:latest
|
||||
|
||||
- name: Build web
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./web
|
||||
load: true
|
||||
tags: |
|
||||
jitsi/web:latest
|
||||
Reference in New Issue
Block a user