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
099c2d61
Commit
099c2d61
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
1 merge request
!301
(chore) Changing CI_COMMIT_SHA to CI_PIPELINE_ID
Pipeline
#78598485
passed with stages
in 12 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
.gitlab-ci.yml
.gitlab-ci.yml
+9
-9
No files found.
.gitlab-ci.yml
View file @
099c2d61
...
...
@@ -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
...
...
@@ -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