kurense/Deploy to Service Host
Deploy application to "service host" running Docker on a Google Compute instance
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Oct 21, 2024
- License
- None
Pinned Snippet
uses: kurense/action-deploy-to-service-host@d5b25cfbc0b70b8094ec7df4779985c6e87606e7 # v2.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| application-name | Name of the application, matching the name of the application directory on the host | yes | — |
| application-release-name | Name of the release, to be reported to Sentry at deployment or when an error occurs | yes | — |
| application-deployment-command | Command to run on the service host to deploy the application. Runs in the application directory on the host. | — | docker rollout web |
| deployment-registry-hostname | Hostname of the Docker registry where the deployment image is stored, used to set up authentication for pulling the image | yes | — |
| deployment-image-name | Docker image name of the deployment image, used to tag and push the image to the registry. This should be the full path to the image without a tag, including the registry hostname. Should match the base image that was configured in the docker-compose file for the application. | yes | — |
| deployment-image-tag | Tag of the Docker image to be deployed, will be appended to the deployment image name | yes | — |
| gcp-project-id | ID of the Google Cloud project where the instance is running | yes | — |
| gcp-instance-name | Name of the Google Compute instance where the application is to be deployed | yes | — |
| gcp-instance-zone | Zone of the Google Compute instance where the application is to be deployed | yes | — |
| gcp-credentials | Service account JSON key for authenticating with Google Cloud. Used for authenticating with the "deployment-registry-hostname" Docker registry, and for connecting via SSH to the Google Compute instance. | yes | — |
| source-image-name | Docker image name of the source image, which is expected to be in GitHub Container Registry | yes | — |
| github-token | GitHub token used to authenticate with the GitHub Container Registry, where the docker image will be pulled from | yes | ${{ github.token }} |
| github-container-registry-username | Username for authenticating with the GitHub Container Registry | yes | ${{ github.repository_owner }} |
Outputs
no outputs