ci: dry run Docker builds on PRs
This commit is contained in:
104
.github/workflows/unstable.yml
vendored
104
.github/workflows/unstable.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Unstable Build
|
name: Unstable Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 6 * * *"
|
- cron: "0 6 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -26,11 +27,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./base
|
context: ./base
|
||||||
@@ -39,6 +42,16 @@ jobs:
|
|||||||
${{ secrets.JITSI_REPO }}/base:${{ needs.version.outputs.date }}
|
${{ secrets.JITSI_REPO }}/base:${{ needs.version.outputs.date }}
|
||||||
build-args: |
|
build-args: |
|
||||||
JITSI_RELEASE=unstable
|
JITSI_RELEASE=unstable
|
||||||
|
- 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
|
||||||
|
|
||||||
base-java:
|
base-java:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -50,11 +63,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./base-java
|
context: ./base-java
|
||||||
@@ -64,6 +79,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
jibri:
|
jibri:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -75,11 +101,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./jibri
|
context: ./jibri
|
||||||
@@ -89,6 +117,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
jicofo:
|
jicofo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -100,11 +139,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./jicofo
|
context: ./jicofo
|
||||||
@@ -114,6 +155,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
jigasi:
|
jigasi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -125,11 +177,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./jigasi
|
context: ./jigasi
|
||||||
@@ -139,6 +193,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
jvb:
|
jvb:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -150,11 +215,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./jvb
|
context: ./jvb
|
||||||
@@ -164,6 +231,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
prosody:
|
prosody:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -175,11 +253,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./prosody
|
context: ./prosody
|
||||||
@@ -189,6 +269,17 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|
||||||
web:
|
web:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -200,11 +291,13 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./web
|
context: ./web
|
||||||
@@ -214,3 +307,14 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
JITSI_REPO=${{ secrets.JITSI_REPO }}
|
||||||
BASE_TAG=${{ needs.version.outputs.base }}
|
BASE_TAG=${{ needs.version.outputs.base }}
|
||||||
|
- 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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user