123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- name: "Release Stable"
- on:
- workflow_dispatch:
- inputs:
- version:
- description: Version number
- required: true
- type: string
- jobs:
- gh-release:
- runs-on: ubuntu-latest
- needs: [base, base-java, jibri, jicofo, jigasi, jvb, prosody, web]
- permissions:
- # Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
- contents: write
- steps:
- - uses: actions/checkout@v4
- - run: |
- sed -i".bak" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml
- - uses: stefanzweifel/git-auto-commit-action@v5
- with:
- commit_message: "release: stable-${{ github.event.inputs.version }}"
- - name: release
- uses: softprops/action-gh-release@v2
- with:
- tag_name: stable-${{ github.event.inputs.version }}
- generate_release_notes: true
- make_latest: true
- - run: |
- sed -i".bak" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml
- - uses: stefanzweifel/git-auto-commit-action@v5
- with:
- commit_message: "misc: working on unstable"
- base:
- runs-on: ubuntu-latest
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./base
- tags: |
- ${{ secrets.JITSI_REPO }}/base:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/base:stable
- build-args: |
- JITSI_RELEASE=stable
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- base-java:
- runs-on: ubuntu-latest
- needs: base
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./base-java
- tags: |
- ${{ secrets.JITSI_REPO }}/base-java:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/base-java:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- jibri:
- runs-on: ubuntu-latest
- needs: base-java
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./jibri
- tags: |
- ${{ secrets.JITSI_REPO }}/jibri:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/jibri:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- jicofo:
- runs-on: ubuntu-latest
- needs: base-java
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./jicofo
- tags: |
- ${{ secrets.JITSI_REPO }}/jicofo:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/jicofo:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- jigasi:
- runs-on: ubuntu-latest
- needs: base-java
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./jigasi
- tags: |
- ${{ secrets.JITSI_REPO }}/jigasi:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/jigasi:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- jvb:
- runs-on: ubuntu-latest
- needs: base-java
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./jvb
- tags: |
- ${{ secrets.JITSI_REPO }}/jvb:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/jvb:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- prosody:
- runs-on: ubuntu-latest
- needs: base
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./prosody
- tags: |
- ${{ secrets.JITSI_REPO }}/prosody:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/prosody:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
- web:
- runs-on: ubuntu-latest
- needs: base
- steps:
- - name: Check out code
- uses: actions/checkout@v4
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- with:
- platforms: linux/amd64,linux/arm64
- - name: Setup Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- push: true
- context: ./web
- tags: |
- ${{ secrets.JITSI_REPO }}/web:stable-${{ github.event.inputs.version }}
- ${{ secrets.JITSI_REPO }}/web:stable
- build-args: |
- JITSI_REPO=${{ secrets.JITSI_REPO }}
- BASE_TAG=stable-${{ github.event.inputs.version }}
- platforms: linux/amd64,linux/arm64
- cache-from: type=gha
- cache-to: type=gha,mode=max
|