Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
164
Issues
164
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
4bbb89eb
Commit
4bbb89eb
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): use gitlab container repository vs mac to sand badwidth
parent
fab79916
No related merge requests found
Pipeline
#68341943
failed with stages
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
.gitlab-ci.yml
.gitlab-ci.yml
+12
-8
No files found.
.gitlab-ci.yml
View file @
4bbb89eb
...
...
@@ -41,9 +41,8 @@ prepare:fpm:
stage
:
prepare
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker build -t $REPOSITORY_URL_FPM-$CI_BUILD_REF -f containers/php-fpm/Dockerfile .
-
docker push $REPOSITORY_URL_FPM-$CI_BUILD_REF
-
docker build -t $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF -f containers/php-fpm/Dockerfile .
-
docker push $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF
environment
:
name
:
staging
...
...
@@ -51,9 +50,8 @@ prepare:runners:
stage
:
prepare
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker build -t $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF -f containers/php-runners/Dockerfile .
-
docker push $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF
-
docker build -t $CI_REGISTRY_IMAGE/runners:$CI_BUILD_REF -f containers/php-runners/Dockerfile .
-
docker push $CI_REGISTRY_IMAGE/runners:$CI_BUILD_REF
environment
:
name
:
staging
...
...
@@ -61,6 +59,8 @@ staging:start:
stage
:
staging
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
aws eks update-kubeconfig --name=$EKS_NAME
-
STAGING_SUBDOMAIN=$(echo $CI_COMMIT_MESSAGE | awk -F'-subdomain:' '{print $2}')
-
echo "Subdomain will be setup at $STAGING_SUBDOMAIN"
only
:
...
...
@@ -71,6 +71,8 @@ staging:stop:
stage
:
staging
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
aws eks update-kubeconfig --name=$EKS_NAME
-
STAGING_SUBDOMAIN=$(echo $CI_COMMIT_MESSAGE | awk -F'-subdomain:' '{print $2}')
-
echo "TODO tear down $STAGING_SUBDOMAIN"
when
:
manual
...
...
@@ -83,7 +85,8 @@ deploy:fpm:
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker tag $REPOSITORY_URL_FPM-$CI_BUILD_REF $REPOSITORY_URL_FPM
-
docker pull $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_BUILD_REF $REPOSITORY_URL_FPM
-
docker push $REPOSITORY_URL_FPM
-
aws ecs update-service --service=$SERVICE_FPM --force-new-deployment --region us-east-1 --cluster=$CLUSTER
only
:
...
...
@@ -98,7 +101,8 @@ deploy:runners:
image
:
minds/ci:latest
script
:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker tag $REPOSITORY_URL_RUNNERS-$CI_BUILD_REF $REPOSITORY_URL_RUNNERS
-
docker pull $CI_REGISTRY_IMAGE/runners:$CI_BUILD_REF
-
docker tag $CI_REGISTRY_IMAGE/runners:$CI_BUILD_REF $REPOSITORY_URL_RUNNERS
-
docker push $REPOSITORY_URL_RUNNERS
-
aws ecs update-service --service=$SERVICE_RUNNERS --force-new-deployment --region us-east-1 --cluster=$CLUSTER
only
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment