Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
241
Issues
241
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
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
78dcba22
Commit
78dcba22
authored
3 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): add more missing build refs
parent
6c843897
No related merge requests found
Pipeline
#78598133
canceled with stages
in 2 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
.gitlab-ci.yml
.gitlab-ci.yml
+15
-15
No files found.
.gitlab-ci.yml
View file @
78dcba22
...
...
@@ -42,12 +42,12 @@ prepare:fpm:
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
|
docker build \
-t $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
\
-t $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
\
-f containers/php-fpm/Dockerfile \
--build-arg MINDS_VERSION=$CI_
BUILD_REF
\
--build-arg MINDS_VERSION=$CI_
PIPELINE_ID
\
--build-arg SENTRY_DSN=$SENTRY_DSN \
.
-
docker push $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
-
docker push $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
prepare:runners:
stage
:
prepare
...
...
@@ -88,15 +88,15 @@ review:start:
--set-string
phpfpm.image.tag=$CI_PIPELINE_ID
\
--set
runners.image.repository=$CI_REGISTRY_IMAGE/runners
\
--set-string
runners.image.tag=$CI_PIPELINE_ID
\
--set
domain=$CI_
BUILD_REF
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
\
--set
elasticsearch.clusterName=$CI_
BUILD_REF
_SLUG-elasticsearch
\
--set
domain=$CI_
PIPELINE_ID
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
\
--set
elasticsearch.clusterName=$CI_
PIPELINE_ID
_SLUG-elasticsearch
\
--wait
\
$CI_
BUILD_REF
_SLUG
\
$CI_
PIPELINE_ID
_SLUG
\
./helm-charts/minds"
-
sentry-cli releases deploys $CI_PIPELINE_ID new -e review-$CI_COMMIT_REF_SLUG
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_
BUILD_REF
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
url
:
https://$CI_
PIPELINE_ID
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
on_stop
:
review:stop
except
:
refs
:
...
...
@@ -108,10 +108,10 @@ review:stop:
image
:
minds/helm-eks:latest
script
:
-
aws eks update-kubeconfig --name=sandbox
-
helm del --purge $CI_
BUILD_REF
_SLUG
-
helm del --purge $CI_
PIPELINE_ID
_SLUG
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_
BUILD_REF
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
url
:
https://$CI_
PIPELINE_ID
_SLUG.$KUBE_INGRESS_BASE_DOMAIN
action
:
stop
variables
:
GIT_STRATEGY
:
none
...
...
@@ -128,12 +128,12 @@ staging:fpm:
-
IMAGE_LABEL="staging"
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
docker pull $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
-
docker pull $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
# Push to AWS registry
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
$ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
$ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
-
docker push $ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
# Push to Gitlab registry
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
$CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
$CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
-
docker push $CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
# Deploy to staging
-
aws ecs update-service --service=$ECS_APP_STAGING_SERVICE --force-new-deployment --region us-east-1 --cluster=$ECS_CLUSTER
...
...
@@ -154,12 +154,12 @@ canary:fpm:
-
IMAGE_LABEL="canary"
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
docker pull $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
-
docker pull $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
# Push to AWS registry
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
$ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
$ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
-
docker push $ECR_REPOSITORY_URL_FPM:$IMAGE_LABEL
# Push to Gitlab registry
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
BUILD_REF
$CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/fpm:$CI_
PIPELINE_ID
$CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
-
docker push $CI_REGISTRY_IMAGE/fpm:$IMAGE_LABEL
# Deploy to ECS
-
aws ecs update-service --service=$ECS_APP_CANARY_SERVICE --force-new-deployment --region us-east-1 --cluster=$ECS_CLUSTER
...
...
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