Google Cloud Platform (GCP)
Contents
Google Cloud Platform (GCP)¶
About¶
Key |
Value |
|---|---|
Source |
|
Website |
|
Reference |
References¶
Static Website¶
GitHub Action CI/Cd Workflow¶
Deploying a Static Website to Google Cloud Storage With Github Actions
Replace folder using upload-cloud-storage action
Automating CI/CD pipelines with GitHub Actions and Google Cloud
# ----------
# References
# ----------
# Replace folder using upload-cloud-storage action
# https://stackoverflow.com/questions/68373383/replace-folder-using-upload-cloud-storage-action
# rsync - Synchronize content of two buckets/directories
# https://cloud.google.com/storage/docs/gsutil/commands/rsync
# setup-gcloud GitHub Action
# https://github.com/google-github-actions/setup-gcloud
# Deploy To Google Cloud Run Using Github Actions
# https://towardsdatascience.com/deploy-to-google-cloud-run-using-github-actions-590ecf957af0
name: Upload Files to GCP Storage
on: [push]
jobs:
Upload-SAPID-Book-Files:
name: Copy latest files to GCP Storage
runs-on: ubuntu-latest
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v3
- id: 'auth'
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'
- name: 'Use glcloud CLI'
run: 'gsutil -m rsync -R -d sapid-book/_build/html gs://sapid_bucket_01'
Cloud CDN¶
SSL Certificates & DNS Config¶
How to Use Google Managed Certificates on a Google Cloud Load Balancer