Skip to content

feat: bump to v9779 #77

feat: bump to v9779

feat: bump to v9779 #77

Workflow file for this run

name: Publish
on:
push:
branches: [master]
tags: ["v*.*.*"]
pull_request:
branches: [master]
env:
REGISTRY: ghcr.io
BASE_REPO: ghcr.io/${{ github.repository }}
jobs:
build-operator:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
outputs: type=docker,dest=jitsi-kubernetes-operator.tar
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: jitsi-kubernetes-operator
path: jitsi-kubernetes-operator.tar
retention-days: 1
build-jibri:
runs-on: ubuntu-latest
permissions:
contents: read
env:
IMAGE_NAME: jibri
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
build-jicofo:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
env:
IMAGE_NAME: jicofo
build-jvb:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
env:
IMAGE_NAME: jvb
build-prosody:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
env:
IMAGE_NAME: prosody
build-web:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
env:
IMAGE_NAME: web
build-torture:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
- name: Extract Jitsi Version
id: version
run: |
echo "jitsi=$(cat JITSI_VERSION)" >> $GITHUB_OUTPUT
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./images/${{ env.IMAGE_NAME }}
outputs: type=docker,dest=${{ env.IMAGE_NAME }}.tar
file: ./images/${{ env.IMAGE_NAME }}/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: JITSI_VERSION=${{ steps.version.outputs.jitsi }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.IMAGE_NAME }}.tar
retention-days: 1
env:
IMAGE_NAME: torture
e2e-test:
runs-on: ubuntu-latest
needs:
- build-operator
- build-jibri
- build-jicofo
- build-jvb
- build-prosody
- build-web
- build-torture
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.10.0
with:
cluster_name: jitsi-test
config: test/cluster.yaml
- name: Download Artifact
uses: actions/download-artifact@v4
env:
ARTIFACT: jitsi-kubernetes-operator
with:
name: ${{ env.ARTIFACT }}
path: build
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: jicofo
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: jvb
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: prosody
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: web
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: torture
- name: Run test
env:
VERSION: ${{ github.ref_name }}
run: ./scripts/test.sh
publish-operator:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: jitsi-kubernetes-operator
- name: Push Docker image
run: |
docker image load -i build/jitsi-kubernetes-operator.tar
docker push -a ${{ env.BASE_REPO }}
publish-jibri:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
env:
IMAGE_NAME: jibri
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
publish-jicofo:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: jicofo
publish-jvb:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: jvb
publish-prosody:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: prosody
publish-web:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: web
publish-torture:
runs-on: ubuntu-latest
needs: [e2e-test]
permissions:
packages: write
steps:
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: build
env:
ARTIFACT: ${{ env.IMAGE_NAME }}
- name: Push Docker image
run: |
docker image load -i build/${{ env.IMAGE_NAME }}.tar
docker push -a ${{ env.BASE_REPO }}/${{ env.IMAGE_NAME }}
env:
IMAGE_NAME: torture