mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-12-01 23:19:13 +00:00
[GHA] Move build data and source tarball storage from Teleport to GCS
This commit is contained in:
2 files changed
+12
-12
No files matched your search
@@ -201,7 +201,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:
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user