shared-assets icon indicating copy to clipboard operation
shared-assets copied to clipboard

[feat] deploy to GCP

Open bsmth opened this issue 1 year ago • 1 comments

It would be great to deploy these to a GCP bucket linked with a domain like developer.mozilla.org/assets or assets.mdn.dev or similar.

See https://github.com/google-github-actions/upload-cloud-storage

jobs:
  job_id:
    permissions:
      contents: 'read'
      id-token: 'write'

    steps:
    - id: 'checkout'
      uses: 'actions/checkout@v3'

    - id: 'auth'
      uses: 'google-github-actions/auth@v1'
      with:
        workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
        service_account: '[email protected]'

    - id: 'upload-file'
      uses: 'google-github-actions/upload-cloud-storage@v1'
      with:
        path: '/path/to/file'
        destination: 'bucket-name/file'

bsmth avatar Nov 15 '23 13:11 bsmth

Added a gh-pages deploy in https://github.com/mdn/shared-assets/pull/8 for now as a stopgap

bsmth avatar Apr 03 '24 11:04 bsmth

I'm closing for the moment, I think we will revisit deployment options at a later stage

bsmth avatar Jul 09 '24 11:07 bsmth