123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- name: Build and Distribute
- on:
- pull_request:
- push:
- branches:
- - release
- - master
- paths:
- - "**"
- workflow_dispatch:
- concurrency:
- group: ${{ github.head_ref || github.ref }}
- jobs:
- deb:
- name: 'DEB'
- permissions:
- id-token: write
- contents: read
- uses: signalwire/actions-template/.github/workflows/cicd-docker-build-and-distribute.yml@main
- strategy:
- # max-parallel: 1
- fail-fast: false
- matrix:
- os:
- - debian
- version:
- - bookworm
- - bullseye
- - buster
- platform:
- - name: amd64
- runner: ubuntu-latest
- - name: arm32v7
- runner: ubuntu-latest
- - name: arm64v8
- runner: ubuntu-latest
- # exclude:
- # - version: bookworm
- # platform:
- # name: arm32v7
- with:
- RUNNER: ${{ matrix.platform.runner }}
- ARTIFACTS_PATTERN: '.*\.(deb)$'
- DOCKERFILE: .github/docker/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}/Dockerfile
- MAINTAINER: 'Andrey Volk <andrey@signalwire.com>'
- META_FILE_PATH_PREFIX: /var/www/libks/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}
- PLATFORM: ${{ matrix.platform.name }}
- # REPO_DOMAIN: freeswitch.signalwire.com
- TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-artifact
- UPLOAD_BUILD_ARTIFACTS: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.title, ':upload-artifacts') }}
- secrets:
- GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}
- HOSTNAME: ${{ secrets.HOSTNAME }}
- PROXY_URL: ${{ secrets.PROXY_URL }}
- USERNAME: ${{ secrets.USERNAME }}
- TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }}
- # REPO_USERNAME: 'signalwire'
- # REPO_PASSWORD: ${{ secrets.REPOTOKEN }}
- rpm:
- name: 'RPM'
- permissions:
- id-token: write
- contents: read
- uses: signalwire/actions-template/.github/workflows/cicd-docker-build-and-distribute.yml@main
- strategy:
- # max-parallel: 1
- fail-fast: false
- matrix:
- os:
- - centos
- version:
- - 7
- platform:
- - name: amd64
- runner: ubuntu-latest
- with:
- RUNNER: ${{ matrix.platform.runner }}
- ARTIFACTS_PATTERN: '.*\.(rpm)$'
- DOCKERFILE: .github/docker/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}/Dockerfile
- MAINTAINER: 'Andrey Volk <andrey@signalwire.com>'
- META_FILE_PATH_PREFIX: /var/www/libks/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}
- PLATFORM: ${{ matrix.platform.name }}
- # REPO_DOMAIN: freeswitch.signalwire.com
- TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-artifact
- UPLOAD_BUILD_ARTIFACTS: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.title, ':upload-artifacts') }}
- secrets:
- GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}
- HOSTNAME: ${{ secrets.HOSTNAME }}
- PROXY_URL: ${{ secrets.PROXY_URL }}
- USERNAME: ${{ secrets.USERNAME }}
- TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }}
- # REPO_USERNAME: ${{ secrets.FSAUSER }}
- # REPO_PASSWORD: ${{ secrets.FSAPASS }}
- meta:
- name: 'Publish build data to meta-repo'
- if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.title, ':upload-artifacts') }}
- needs:
- - deb
- - rpm
- permissions:
- id-token: write
- contents: read
- uses: signalwire/actions-template/.github/workflows/meta-repo-content.yml@main
- with:
- META_CONTENT: '/var/www/libks/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}'
- META_REPO: signalwire/bamboo_gha_trigger
- META_REPO_BRANCH: trigger/libks/${{ github.ref_name }}
- secrets:
- GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}
|