[GHA]: Add build workflow. #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Distribute | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
paths: | |
- "**" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.head_ref || github.ref }} | |
jobs: | |
deb-fse: | |
name: 'DEB-FSE' | |
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 | |
platform: | |
- name: amd64 | |
runner: ubuntu-latest | |
release: | |
- release | |
with: | |
RUNNER: ${{ matrix.platform.runner }} | |
ARTIFACTS_PATTERN: '.*\.(deb)$' | |
DOCKERFILE: .github/docker/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}/fse.${{ matrix.release }}.Dockerfile | |
MAINTAINER: 'Andrey Volk <[email protected]>' | |
META_FILE_PATH_PREFIX: /var/www/mod_unimrcp/fse/${{ matrix.release }}/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }} | |
PLATFORM: ${{ matrix.platform.name }} | |
REPO_DOMAIN: 'fsa.freeswitch.com' | |
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-fse-${{ matrix.release }}-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.FSE_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.FSE_PASSWORD }} | |
deb-public: | |
name: 'DEB-PUBLIC' | |
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 | |
platform: | |
- name: amd64 | |
runner: ubuntu-latest | |
release: | |
- release | |
with: | |
RUNNER: ${{ matrix.platform.runner }} | |
ARTIFACTS_PATTERN: '.*\.(deb)$' | |
DOCKERFILE: .github/docker/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}/public.${{ matrix.release }}.Dockerfile | |
MAINTAINER: 'Andrey Volk <[email protected]>' | |
META_FILE_PATH_PREFIX: /var/www/mod_unimrcp/public/${{ matrix.release }}/${{ 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 }}-public-${{ matrix.release }}-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 }} | |
meta: | |
name: 'Publish build data to meta-repo' | |
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.title, ':upload-artifacts') }} | |
needs: | |
- deb-fse | |
- deb-public | |
permissions: | |
id-token: write | |
contents: read | |
uses: signalwire/actions-template/.github/workflows/meta-repo-content.yml@main | |
with: | |
META_CONTENT: '/var/www/mod_unimrcp/{fse,public}/release/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}' | |
META_REPO: signalwire/bamboo_gha_trigger | |
META_REPO_BRANCH: trigger/mod_unimrcp/${{ github.ref_name }} | |
secrets: | |
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }} |