You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
400 lines
14 KiB
400 lines
14 KiB
name: Unstable Build
|
|
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 6 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
version:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
base: unstable
|
|
date: unstable-${{ steps.date.outputs.date }}
|
|
steps:
|
|
- name: Get current date
|
|
id: date
|
|
run: echo "::set-output name=date::$(date +%F)"
|
|
|
|
base:
|
|
runs-on: ubuntu-latest
|
|
needs: version
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./base
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/base:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/base:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_RELEASE=unstable
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./base
|
|
tags: |
|
|
jitsi/base:${{ needs.version.outputs.base }}
|
|
jitsi/base:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_RELEASE=unstable
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
base-java:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./base-java
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/base-java:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/base-java:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./base-java
|
|
tags: |
|
|
jitsi/base-java:${{ needs.version.outputs.base }}
|
|
jitsi/base-java:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
jibri:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base-java]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./jibri
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/jibri:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/jibri:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./jibri
|
|
tags: |
|
|
jitsi/jibri:${{ needs.version.outputs.base }}
|
|
jitsi/jibri:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
jicofo:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base-java]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./jicofo
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/jicofo:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/jicofo:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./jicofo
|
|
tags: |
|
|
jitsi/jicofo:${{ needs.version.outputs.base }}
|
|
jitsi/jicofo:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
jigasi:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base-java]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./jigasi
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/jigasi:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/jigasi:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./jigasi
|
|
tags: |
|
|
jitsi/jigasi:${{ needs.version.outputs.base }}
|
|
jitsi/jigasi:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
jvb:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base-java]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./jvb
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/jvb:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/jvb:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./jvb
|
|
tags: |
|
|
jitsi/jvb:${{ needs.version.outputs.base }}
|
|
jitsi/jvb:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
prosody:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./prosody
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/prosody:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/prosody:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./prosody
|
|
tags: |
|
|
jitsi/prosody:${{ needs.version.outputs.base }}
|
|
jitsi/prosody:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
web:
|
|
runs-on: ubuntu-latest
|
|
needs: [version, base]
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
with:
|
|
push: true
|
|
context: ./web
|
|
tags: |
|
|
${{ secrets.JITSI_REPO }}/web:${{ needs.version.outputs.base }}
|
|
${{ secrets.JITSI_REPO }}/web:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
- name: Dryrun
|
|
uses: docker/build-push-action@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
context: ./web
|
|
tags: |
|
|
jitsi/web:${{ needs.version.outputs.base }}
|
|
jitsi/web:${{ needs.version.outputs.date }}
|
|
build-args: |
|
|
JITSI_REPO=jitsi
|
|
BASE_TAG=${{ needs.version.outputs.base }}
|
|
platforms: linux/amd64,linux/arm64
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|