Merge pull request #3323 from signalwire/gcs-publish

[GHA] Move build data and source tarball storage from Teleport to GCS
This commit is contained in:
Serhii Ivanov authored and GitHub committed 2026-12-01 17:15:36 +01:00
commit 4cf482c807
2 files changed
+12 -16

No files matched your search

+1 -5
View File
@@ -163,10 +163,6 @@ jobs:
}}
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: "SWUSERNAME"
REPO_PASSWORD: ${{ needs.issue-token.outputs.token }}
@@ -201,7 +197,7 @@ jobs:
contents: read
uses: signalwire/actions-template/.github/workflows/meta-repo-content.yml@main
with:
META_CONTENT: "/var/www/freeswitch/public/{release,unstable}/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}"
META_CONTENT: "gs://gcs-prod-us-central1-ci-packages-1/freeswitch/public/{release,unstable}/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}"
META_REPO: signalwire/bamboo_gha_trigger
META_REPO_BRANCH: trigger/freeswitch/${{ github.ref_name }}
secrets:
+11 -11
View File
@@ -34,8 +34,9 @@ jobs:
ref: main
fetch-depth: 1
path: actions
persist-credentials: false
sparse-checkout: |
.github/actions/teleport/action.yml
.github/actions/rclone-s3-sync/action.yml
sparse-checkout-cone-mode: false
- name: Install dependencies
@@ -77,18 +78,17 @@ jobs:
run: |
tar -tvzf source_archives.tar.gz
- name: Upload source tarball to remote host
- name: Upload source tarball to GCS
if: github.event_name != 'workflow_dispatch'
uses: ./actions/.github/actions/teleport
uses: ./actions/.github/actions/rclone-s3-sync
with:
EXEC_COMMANDS_PRE: 'mkdir -p /var/www/freeswitch/public/release/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}'
FILES: 'source_archives.tar.gz'
FILES_FOLDER: '/var/www/freeswitch/public/release/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}'
env:
HOSTNAME: ${{ secrets.HOSTNAME }}
PROXY_URL: ${{ secrets.PROXY_URL }}
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
USERNAME: ${{ secrets.USERNAME }}
SRC: 'source_archives.tar.gz'
DST: 'freeswitch/public/release/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}/source_archives.tar.gz'
SYNC_TYPE: local-to-remote
OPERATION: copyto
S3_PROVIDER: gcs-oidc
S3_BUCKET: gcs-prod-us-central1-ci-packages-1
GCS_WORKLOAD_IDENTITY_PROVIDER: projects/560294807735/locations/global/workloadIdentityPools/github/providers/infrastructure-lives
- name: Upload source tarball as artifact
if: github.event_name == 'workflow_dispatch'