TEL-5773: Implement developer branch for builder #3
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 Sofia-Sip | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
sofia_build: | |
name: 'Build' | |
uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@main | |
with: | |
PROJECT_NAME: sofia-sip | |
RUNNER: ubuntu-latest | |
PACKAGER: 'packager Andrey Volk <[email protected]>' | |
secrets: inherit | |
distribute_matrix: | |
permissions: write-all | |
name: 'Copy to remote' | |
needs: sofia_build | |
strategy: | |
matrix: | |
target_path: | |
- /var/www/repo/yum/centos-release/7 | |
- /var/www/fsa/repo/yum-stack/fsa/centos-release/7 | |
- /var/www/repo/yum/centos-dev/7 | |
- /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 | |
uses: signalwire/actions-template/.github/workflows/cd-scp.yml@main | |
with: | |
ARTIFACT_NAME: rpm-artifact | |
TARGET_FOLDER: ${{ matrix.target_path }} | |
RUNNER: ubuntu-latest | |
FILES: '*.tar.gz' | |
secrets: | |
# Explicit define secrets for better understanding but it could be just inherit | |
PROXY_URL: ${{ secrets.PROXY_URL }} | |
USERNAME: ${{ secrets.USERNAME }} | |
HOSTNAME: ${{ secrets.HOSTNAME }} | |
TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} |