From 4599761e9228647b748b147deac8b38a7de86c78 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Wed, 10 Jan 2024 17:58:27 +0100 Subject: [PATCH] WiP Signed-off-by: s3rj1k --- .github/workflows/all.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 30a9ba50..80840812 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -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 @@ -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: @@ -53,7 +53,7 @@ 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 }} @@ -61,6 +61,7 @@ jobs: 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] @@ -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}} @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: