Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
Signed-off-by: s3rj1k <[email protected]>
  • Loading branch information
s3rj1k committed Jan 10, 2024
1 parent 6198851 commit 4599761
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.ref }}
group: ${{ github.head_ref || github.ref }}

jobs:

sofia_build_rpm:
name: 'Build Rpm'
uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@main
uses: s3rj1k/actions-template/.github/workflows/ci-rpm-packages.yml@TEST
with:
PROJECT_NAME: sofia-sip
RUNNER: ubuntu-latest
Expand All @@ -25,7 +25,7 @@ jobs:

sofia_build_deb:
name: 'Build Deb'
uses: signalwire/actions-template/.github/workflows/ci-deb-packages-v2.yml@main
uses: s3rj1k/actions-template/.github/workflows/ci-deb-packages-v2.yml@TEST
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -53,14 +53,15 @@ jobs:
- deb-arm
- rpm-amd64

uses: signalwire/actions-template/.github/workflows/ci-libs-metadata-v2.yml@main
uses: s3rj1k/actions-template/.github/workflows/ci-libs-metadata-v2.yml@TEST
with:
ARTIFACT_NAME: ${{ matrix.platform }}-artifact
OS_PLATFORM: ${{ matrix.platform }}
RUNNER: ubuntu-latest
FILE_PATH_PREFIX: /var/www/sofia-${{ matrix.platform }}/${{github.run_id}}-${{github.run_number}}

distribute_matrix:
if: github.ref == 'refs/heads/main'
permissions: write-all
name: 'Copy to remote'
needs: [sofia_build_rpm, sofia_build_deb]
Expand All @@ -71,7 +72,7 @@ jobs:
- deb-arm
- rpm-amd64

uses: signalwire/actions-template/.github/workflows/cd-scp.yml@main
uses: s3rj1k/actions-template/.github/workflows/cd-scp.yml@TEST
with:
ARTIFACT_NAME: ${{ matrix.os_platform }}-artifact
TARGET_FOLDER: /var/www/sofia-${{ matrix.os_platform }}/${{github.run_id}}-${{github.run_number}}
Expand All @@ -86,6 +87,7 @@ jobs:
TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }}

distribute_meta_deb:
if: github.ref == 'refs/heads/main'
permissions: write-all
name: 'Copy meta to remote'
needs: generate_meta
Expand All @@ -97,7 +99,7 @@ jobs:
- amd64
- arm

uses: signalwire/actions-template/.github/workflows/cd-libs-metadata.yml@main
uses: s3rj1k/actions-template/.github/workflows/cd-libs-metadata.yml@TEST
with:
ARTIFACT_NAME: ${{ matrix.os }}-${{matrix.platform}}-meta
LIB_NAME: sofia-sip
Expand All @@ -109,6 +111,7 @@ jobs:
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}

distribute_meta_rpm:
if: github.ref == 'refs/heads/main'
permissions: write-all
name: 'Copy meta to remote'
needs: generate_meta
Expand All @@ -119,7 +122,7 @@ jobs:
platform:
- amd64

uses: signalwire/actions-template/.github/workflows/cd-libs-metadata.yml@main
uses: s3rj1k/actions-template/.github/workflows/cd-libs-metadata.yml@TEST
with:
ARTIFACT_NAME: ${{ matrix.os }}-${{matrix.platform}}-meta
LIB_NAME: sofia-sip
Expand All @@ -131,10 +134,11 @@ jobs:
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}

distribute_hash:
if: github.ref == 'refs/heads/main'
permissions: write-all
name: 'Copy hash to remote'
needs: [distribute_meta_deb, distribute_meta_rpm]
uses: signalwire/actions-template/.github/workflows/cd-scp.yml@main
uses: s3rj1k/actions-template/.github/workflows/cd-scp.yml@TEST
strategy:
matrix:
os_platform:
Expand Down

0 comments on commit 4599761

Please sign in to comment.