Skip to content

Commit

Permalink
[GHA] Use meta-repo-content workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Apr 11, 2024
1 parent a1808d5 commit 2c3cafb
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
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 }}/${{ matrix.os }}-${{ matrix.platform.name }}/${{ github.run_id }}-${{ github.run_number }}
META_REPO: signalwire/bamboo_gha_trigger
META_REPO_BRANCH: libks/${{ github.ref_name }}/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}
PLATFORM: ${{ matrix.platform.name }}
# REPO_DOMAIN: freeswitch.signalwire.com
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-artifact
Expand Down Expand Up @@ -83,8 +81,6 @@ jobs:
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 }}/${{ matrix.os }}-${{ matrix.platform.name }}/${{ github.run_id }}-${{ github.run_number }}
META_REPO: signalwire/bamboo_gha_trigger
META_REPO_BRANCH: libks/${{ github.ref_name }}/${{ matrix.os }}/${{ matrix.version }}/${{ matrix.platform.name }}
PLATFORM: ${{ matrix.platform.name }}
# REPO_DOMAIN: freeswitch.signalwire.com
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-artifact
Expand All @@ -97,3 +93,20 @@ jobs:
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 }}

0 comments on commit 2c3cafb

Please sign in to comment.