kurense/Deploy to Service Host

Deploy application to "service host" running Docker on a Google Compute instance

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Oct 21, 2024
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: kurense/action-deploy-to-service-host@d5b25cfbc0b70b8094ec7df4779985c6e87606e7 # v2.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
application-nameName of the application, matching the name of the application directory on the hostyes
application-release-nameName of the release, to be reported to Sentry at deployment or when an error occursyes
application-deployment-commandCommand to run on the service host to deploy the application. Runs in the application directory on the host. docker rollout web
deployment-registry-hostnameHostname of the Docker registry where the deployment image is stored, used to set up authentication for pulling the imageyes
deployment-image-nameDocker 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-tagTag of the Docker image to be deployed, will be appended to the deployment image nameyes
gcp-project-idID of the Google Cloud project where the instance is runningyes
gcp-instance-nameName of the Google Compute instance where the application is to be deployedyes
gcp-instance-zoneZone of the Google Compute instance where the application is to be deployedyes
gcp-credentialsService 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-nameDocker image name of the source image, which is expected to be in GitHub Container Registryyes
github-tokenGitHub token used to authenticate with the GitHub Container Registry, where the docker image will be pulled fromyes${{ github.token }}
github-container-registry-usernameUsername for authenticating with the GitHub Container Registryyes${{ github.repository_owner }}

no outputs