From b22421b16826adfe8364751adcf2002fe2d18a4e Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Thu, 15 Apr 2021 11:48:55 +0200 Subject: [PATCH] misc: publish nightly unstable images --- .github/workflows/unstable.yml | 216 +++++++++++++++++++++++++++++++++ base-java/Dockerfile | 3 +- jibri/Dockerfile | 3 +- jicofo/Dockerfile | 3 +- jigasi/Dockerfile | 3 +- jvb/Dockerfile | 3 +- web/Dockerfile | 3 +- 7 files changed, 228 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/unstable.yml diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml new file mode 100644 index 0000000..56efe65 --- /dev/null +++ b/.github/workflows/unstable.yml @@ -0,0 +1,216 @@ +name: Unstable Build + +on: + 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@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 + + base-java: + runs-on: ubuntu-latest + needs: [version, base] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + jibri: + runs-on: ubuntu-latest + needs: [version,base-java] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + jicofo: + runs-on: ubuntu-latest + needs: [version,base-java] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + jigasi: + runs-on: ubuntu-latest + needs: [version,base-java] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + jvb: + runs-on: ubuntu-latest + needs: [version,base-java] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + prosody: + runs-on: ubuntu-latest + needs: [version,base] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} + + web: + runs-on: ubuntu-latest + needs: [version,base] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + 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 }} \ No newline at end of file diff --git a/base-java/Dockerfile b/base-java/Dockerfile index f827299..e93c593 100644 --- a/base-java/Dockerfile +++ b/base-java/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base:${BASE_TAG} RUN \ mkdir -p /usr/share/man/man1 && \ diff --git a/jibri/Dockerfile b/jibri/Dockerfile index f8d9a03..754e536 100644 --- a/jibri/Dockerfile +++ b/jibri/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base-java +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base-java:${BASE_TAG} #ARG CHROME_RELEASE=latest #ARG CHROMEDRIVER_MAJOR_RELEASE=latest diff --git a/jicofo/Dockerfile b/jicofo/Dockerfile index 0752581..693b96d 100644 --- a/jicofo/Dockerfile +++ b/jicofo/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base-java +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base-java:${BASE_TAG} RUN \ apt-dpkg-wrap apt-get update && \ diff --git a/jigasi/Dockerfile b/jigasi/Dockerfile index 8d50fac..6773eae 100644 --- a/jigasi/Dockerfile +++ b/jigasi/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base-java +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base-java:${BASE_TAG} ENV GOOGLE_APPLICATION_CREDENTIALS /config/key.json diff --git a/jvb/Dockerfile b/jvb/Dockerfile index 48f5bdb..263e613 100644 --- a/jvb/Dockerfile +++ b/jvb/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base-java +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base-java:${BASE_TAG} RUN \ apt-dpkg-wrap apt-get update && \ diff --git a/web/Dockerfile b/web/Dockerfile index 4018366..25d5be5 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,6 @@ ARG JITSI_REPO=jitsi -FROM ${JITSI_REPO}/base +ARG BASE_TAG=latest +FROM ${JITSI_REPO}/base:${BASE_TAG} ADD https://raw.githubusercontent.com/acmesh-official/acme.sh/2.8.8/acme.sh /opt COPY rootfs/ /