Note: This action is a custom add-on made to enrich deploy-appengine
- If you need to store API keys or other sensitive information in your .yaml as environment variables for deployment on Google App Engine.
- If you don't like the idea to push secret environment variables your .yaml to GitHub.
- If you don't like the idea to store the environment variables in a datastore.
-
Modify your < NAME >.yaml file:
env_variables: KEY1: $KEY1 KEY2: $KEY2
-
Add this action to your workflow:
- uses: gokiwibot/[email protected] with: file: ./< NAME >.yaml env: KEY1: ${{ secrets.KEY1 }} KEY2: ${{ secrets.KEY2 }}
Note: If you do not add a file it will automatically pick app.yaml as default
Full example with deployment to Google App Engine:
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
# Replace variables
- uses: gokiwibot/[email protected]
with:
file: ./< NAME >.yaml
env:
KEY1: ${{ secrets.KEY1 }}
KEY2: ${{ secrets.KEY2 }}
# Deploy to GAE
- name: Authenticate with GCP
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
- name: Deploy to Google App Engine
uses: google-github-actions/deploy-appengine@v0
with:
deliverables: < NAME >.yaml
This is an example of how you may set up the project locally.
Prerequisites
- Install docker (https://docs.docker.com/engine/install/)
- Install extensions on vscode:
- open the repository with vscode and click on open container option
Prerequisites
- Install go 1.7 (https://go.dev/doc/install)
After you completed any of the previous options
- Install dependencies
go get -d -v
- Run the project
go run main.go
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some NewFeature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request