This action will allow you to deploy Google App Engine service and delete versions which do not receive any traffic.
- name: Deploy google app engine
uses: vijayp23/deploy-gae-action@1.0.1
with:
service-account: ${{ secrets.SERVICE_ACCOUNT }}
project-id: ${{ secrets.PROJECT_ID }}
config-files: './app.yml'
# Optional
service-version: 3 #default value : ""
delete-previous-versions: true #default value : false
service-name: ${{ secrets.SERVICE_NAME }} #default value : default
no-cache: false #default value : false
debug: false #default value : falseRequired
-
service-account: service account key which will be used for authentication- Create a service account key
- Encode service account key as
base64stringcat service-account-key.json | base64on Linux or macOS
- Store
base64value in GitHub secret
-
project-id: GCP project id in which GAE service is available -
config-files: yaml files for the service or configurations you want to deploy
Optional
service-version: version of the app that will be created or replaced by this deploymentdelete-previous-versions: set it totrueto delete previous versions which are not receiving any traffic. If this is set totruethenservice-nameis requiredservice-name: name of the service of which previous versions needs to be deleted. Set it todefaultif service name is not mentioned in config fileno-cache: deploy project without using cache. Takes longer, but useful in some cases. Set totrueto not use cachedebug: test action and check version details
- You cannot delete a version of a service that is currently receiving traffic
- This action will promote the deployed version to receive all traffic and stop previously running version
--stop-previous-version - If the version is running on an instance of an auto-scaled service in the App Engine Standard environment, using
--stop-previous-versionwill not work and the previous version will continue to run because auto-scaled service instances are always running