Development (local) and production (cloud) using GitLab CI/CD.
AWS_ACCESS_KEY_ID
.
AWS_SECRET_ACCESS_KEY
.
AWS_DEFAULT_REGION
.
.gitlab-ci.yml
.
If you followed the Mage project setup instructions,
then your current folder structure could look like this:
.gitlab-ci.yml
.
.gitlab-ci.yml
under the key labeled variables
:
Key | Description | Sample value |
---|---|---|
REPOSITORY_URL | The URL of the AWS ECR repository you created to store your Docker images. | 679812356111.dkr.ecr.us-west-2.amazonaws.com/mage-data |
CLUSTER_NAME | The name of your AWS ECS cluster. | mage-production-cluster |
SERVICE_NAME | The name of your AWS ECS service. | mage-production-ecs-service |
TASK_DEFINITION_NAME | Go to your AWS ECS task definition for the above service. Use the name of that task definition. | mage-production-task |
main
, for example master
,
you must edit the value only
under the build
and deploy
key in the file .gitlab-ci.yml
.
For example:
.gitlab-ci.yml
.