GitHub Actions Deployments to Google Cloud Storage

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 2

  • @techandgaming0
    @techandgaming0 4 месяца назад

    Any suggestions on how to achieve zero downtime deploy when uploading to the bucket?

    • @nodematic
      @nodematic  4 месяца назад

      I've seen a couple things:
      1) You could use gsutil rsync instead of gsutil rm and gsutilcp, and also use the -d option. This synchronizes, rather than strictly recreates, the objects in the bucket and should be at or near zero downtime.
      2) You could use Cloud CDN in front of the bucket, with a "serve while stale" configuration. This configuration serves objects from a CDN cache if they don't exist in the bucket, for a preconfigured time, so the cache can "cover the gap" when the objects are updating.