To perform the deployment it is necessary to store a docker image in the Artifact Registry, follow the command to deploy:
1 - Generate an image to upload to the Artifact Registry:
docker build -t us-central1-docker.pkg.dev/PROJECT/name-docker-repo/name-image:latest .
us-central1
is the repository location.docker.pkg.dev
is the hostname of the Docker repository you created.PROJECT
is the Google Cloud project ID.name-docker-repo
is the ID of the repository you created.name-image
is the name of the image you want to use in the repository.latest
is a tag you are adding to the Docker image.2 - Upload the generated image to the Artifact Registry:
docker push us-central1-docker.pkg.dev/PROJECT/name-docker-repo/name-image:latest
3 - Change the image in Cloud Run
The Laravel framework is open-sourced software licensed under the MIT license.