Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abinmn/gcp-storage-bucket-action
https://github.com/abinmn/gcp-storage-bucket-action
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/abinmn/gcp-storage-bucket-action
- Owner: abinmn
- License: mit
- Created: 2020-03-07T04:59:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T02:56:42.000Z (over 4 years ago)
- Last Synced: 2024-10-01T09:33:27.375Z (about 1 month ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 10
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy Static Website to GCP Cloud Storage
This action helps you in deploying your static website to GCP cloud storage bucket.
## Getting Started
Follow this guide to get started. It give detailed instruction on how to make your bucket ready for deployment.
## How to use this Action?
On your workflow file,
```
- name: Deploy
uses: actions/checkout@v2
uses: abinmn/gcp-storage-bucket-action
with:
service_key: base64 encoded gcp service account key
project: Name of the project that contains the storage bucket.
home_page_path: Path of your homepage in cloud storage bucket
error_page_path: Path of the 404 page to be shown
build_folder: Path of the file to host. Use "${{ github.workspace }}" for the repository.
```## base64 encode service key
Obtain the service key for your gcp bucket with the necessary permissions.
On linux ```base64 /path/to/key.json``` will give the base64 encoded version of the key. Save this key as a GitHub secret and use ```service_key: {{secrets.service_key(or whatever name you gave to the secret)}}```.