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
31
Merge Requests
31
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
00530fcf
Commit
00530fcf
authored
59 minutes ago
by
Brian Hatchet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing build_ref to pipeline id
parent
51f7dd92
fix/use-pipeline-id-vs-commit
1 merge request
!301
(chore) Changing CI_COMMIT_SHA to CI_PIPELINE_ID
Pipeline
#78483729
failed with stages
in 10 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
.gitlab-ci.yml
.gitlab-ci.yml
+11
-11
No files found.
.gitlab-ci.yml
View file @
00530fcf
...
...
@@ -56,12 +56,12 @@ prepare:runners:
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
|
docker build \
-t $CI_REGISTRY_IMAGE/runners:$CI_
BUILD_REF
\
-t $CI_REGISTRY_IMAGE/runners:$CI_
PIPELINE_ID
\
-f containers/php-runners/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/runners:$CI_
BUILD_REF
-
docker push $CI_REGISTRY_IMAGE/runners:$CI_
PIPELINE_ID
prepare:all:sentry:
stage
:
prepare
...
...
@@ -83,9 +83,9 @@ review:start:
--install
\
--reuse-values
\
--set
phpfpm.image.repository=$CI_REGISTRY_IMAGE/fpm
\
--set
phpfpm.image.tag=$CI_
BUILD_REF
\
--set
phpfpm.image.tag=$CI_
PIPELINE_ID
\
--set
runners.image.repository=$CI_REGISTRY_IMAGE/runners
\
--set
runners.image.tag=$CI_
BUILD_REF
\
--set
runners.image.tag=$CI_
PIPELINE_ID
\
--set
domain=$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
\
--set
elasticsearch.clusterName=$CI_BUILD_REF_SLUG-elasticsearch
\
--wait
\
...
...
@@ -180,12 +180,12 @@ production:fpm:
-
IMAGE_LABEL="production"
-
$(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
# Delpoy to ECS
-
aws ecs update-service --service=$ECS_APP_PRODUCTION_SERVICE --force-new-deployment --region us-east-1 --cluster=$ECS_CLUSTER
...
...
@@ -208,12 +208,12 @@ production:runners:
-
IMAGE_LABEL="production"
-
$(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/runners:$CI_
BUILD_REF
-
docker pull $CI_REGISTRY_IMAGE/runners:$CI_
PIPELINE_ID
# Push to production register
-
docker tag $CI_REGISTRY_IMAGE/runners:$CI_
BUILD_REF
$ECR_REPOSITORY_URL_RUNNERS:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/runners:$CI_
PIPELINE_ID
$ECR_REPOSITORY_URL_RUNNERS:$IMAGE_LABEL
-
docker push $ECR_REPOSITORY_URL_RUNNERS:$IMAGE_LABEL
# Push gitlab registry
-
docker tag $CI_REGISTRY_IMAGE/runners:$CI_
BUILD_REF
$CI_REGISTRY_IMAGE/runners:$IMAGE_LABEL
-
docker tag $CI_REGISTRY_IMAGE/runners:$CI_
PIPELINE_ID
$CI_REGISTRY_IMAGE/runners:$IMAGE_LABEL
-
docker push $CI_REGISTRY_IMAGE/runners:$IMAGE_LABEL
-
aws ecs update-service --service=$ECS_RUNNERS_PRODUCTION_SERVICE --force-new-deployment --region us-east-1 --cluster=$ECS_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