From 835075acbb347094b578ecc49342d02e42c35bff Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Thu, 19 Oct 2023 17:57:36 +0300 Subject: [PATCH] github/workflows: add support for building sipssert image (cherry picked from commit 09593939772cfa5a5dc33694d63a966df8faac8d) --- .github/workflows/build-images.yml | 35 ++++++++++++++++++++++++++++++ .opensips.modules | 6 +++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/build-images.yml create mode 100644 .opensips.modules diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml new file mode 100644 index 0000000..158f616 --- /dev/null +++ b/.github/workflows/build-images.yml @@ -0,0 +1,35 @@ +name: Publish SIPSsert Image + +on: + workflow_dispatch: + inputs: + version: + description: OpenSIPS Version to publish + required: true + tag: + description: OpenSIPS SIPssert Tag to use + required: true + +jobs: + + publish: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Get the required OpenSIPS Modules + id: fetch_modules + run: echo "MODULES=$(cat .opensips.modules | tr '\n' ' ')" > $GITHUB_OUTPUT + + - name: Publish OpenSIPS SIPssert Docker image + uses: OpenSIPS/docker-opensips/.github/actions/docker-opensips-publish@main + with: + version: ${{ github.event.inputs.version }} + tag: ${{ github.event.inputs.tag }} + cli: false + build: nightly + modules: ${{ steps.fetch_modules.outputs.MODULES }} + docker-username: ${{ secrets.DOCKER_USERNAME }} + docker-token: ${{ secrets.DOCKER_TOKEN }} diff --git a/.opensips.modules b/.opensips.modules new file mode 100644 index 0000000..3ef360d --- /dev/null +++ b/.opensips.modules @@ -0,0 +1,6 @@ +opensips-json-module +opensips-mysql-module +opensips-http-modules +opensips-auth-modules +opensips-presence-modules +opensips-stir-shaken-module