Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-app-volunteering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-app-volunteering
Commits
37b6c815
Commit
37b6c815
authored
1 year ago
by
Taha Cherfia
Browse files
Options
Downloads
Patches
Plain Diff
HOLI-5486: update .gitlab-ci.yml
parent
100ae87a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-23
23 additions, 23 deletions
.gitlab-ci.yml
with
23 additions
and
23 deletions
.gitlab-ci.yml
+
23
−
23
View file @
37b6c815
...
@@ -12,8 +12,8 @@ variables:
...
@@ -12,8 +12,8 @@ variables:
# job templates
# job templates
.deploy
:
.deploy
:
image
:
image
:
name
:
'
hashicorp/terraform:1.1.9
'
name
:
"
hashicorp/terraform:1.1.9
"
# default entrypoint is terraform command, but we want to run shell scripts
# default entrypoint is terraform command, but we want to run shell scripts
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
variables
:
variables
:
...
@@ -34,7 +34,7 @@ variables:
...
@@ -34,7 +34,7 @@ variables:
interruptible
:
false
interruptible
:
false
.e2e
:
.e2e
:
image
:
'
archlinux:latest
'
image
:
"
archlinux:latest
"
script
:
script
:
-
API_DOMAIN=`cat $API_DOMAIN_PATH`
-
API_DOMAIN=`cat $API_DOMAIN_PATH`
-
echo "e2e tests against $CI_ENVIRONMENT_SLUG environment go here and against $API_DOMAIN"
-
echo "e2e tests against $CI_ENVIRONMENT_SLUG environment go here and against $API_DOMAIN"
...
@@ -47,10 +47,10 @@ variables:
...
@@ -47,10 +47,10 @@ variables:
## common steps
## common steps
cache_lint_test
:
cache_lint_test
:
image
:
'
denoland/deno:alpine-1.28.1
'
image
:
"
denoland/deno:alpine-1.28.1
"
stage
:
'
test
'
stage
:
"
test
"
script
:
script
:
-
deno cache --lock=deno.lock app/deps.ts app/dev_deps.ts
-
deno cache
--reload
--lock=deno.lock app/deps.ts app/dev_deps.ts
-
deno fmt --check
-
deno fmt --check
-
deno lint
-
deno lint
-
deno test
-
deno test
...
@@ -63,13 +63,13 @@ cache_lint_test:
...
@@ -63,13 +63,13 @@ cache_lint_test:
# Note that environment variables can be set in several places
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
sast
:
sast
:
needs
:
[
'
cache_lint_test
'
]
needs
:
[
"
cache_lint_test
"
]
stage
:
test
stage
:
test
include
:
include
:
-
template
:
Security/SAST.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
build_docker
:
build_docker
:
needs
:
[
'
cache_lint_test
'
]
needs
:
[
"
cache_lint_test
"
]
image
:
docker:20.10
image
:
docker:20.10
services
:
services
:
-
docker:20.10-dind
-
docker:20.10-dind
...
@@ -84,11 +84,11 @@ build_docker:
...
@@ -84,11 +84,11 @@ build_docker:
-
docker push $GCR_IMAGE:$CI_COMMIT_SHA
# this is the tag that is used for deployment
-
docker push $GCR_IMAGE:$CI_COMMIT_SHA
# this is the tag that is used for deployment
-
docker push $GCR_IMAGE:$CI_COMMIT_REF_SLUG
# just for easyly knowing which is the last image for a branch
-
docker push $GCR_IMAGE:$CI_COMMIT_REF_SLUG
# just for easyly knowing which is the last image for a branch
## review environments
## review environments
review_deploy
:
review_deploy
:
extends
:
.deploy
extends
:
.deploy
needs
:
[
'
build_docker
'
]
needs
:
[
"
build_docker
"
]
environment
:
environment
:
name
:
review/$CI_COMMIT_REF_SLUG
name
:
review/$CI_COMMIT_REF_SLUG
url
:
https://$CI_ENVIRONMENT_SLUG.volunteering.apis.holi.social
url
:
https://$CI_ENVIRONMENT_SLUG.volunteering.apis.holi.social
...
@@ -101,16 +101,16 @@ review_deploy:
...
@@ -101,16 +101,16 @@ review_deploy:
review_e2e
:
review_e2e
:
extends
:
.e2e
extends
:
.e2e
needs
:
[
'
review_deploy
'
]
needs
:
[
"
review_deploy
"
]
except
:
except
:
-
main
-
main
-
production
-
production
-
/^noenv\/.*/
-
/^noenv\/.*/
review_destroy
:
review_destroy
:
needs
:
[
'
review_deploy
'
]
needs
:
[
"
review_deploy
"
]
image
:
image
:
name
:
'
hashicorp/terraform:1.1.9
'
name
:
"
hashicorp/terraform:1.1.9
"
# default entrypoint is terraform command, but we want to run shell scripts
# default entrypoint is terraform command, but we want to run shell scripts
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
variables
:
variables
:
...
@@ -141,7 +141,7 @@ review_destroy:
...
@@ -141,7 +141,7 @@ review_destroy:
staging_deploy
:
staging_deploy
:
extends
:
.deploy
extends
:
.deploy
needs
:
[
'
build_docker
'
]
needs
:
[
"
build_docker
"
]
environment
:
environment
:
name
:
staging
name
:
staging
deployment_tier
:
staging
deployment_tier
:
staging
...
@@ -152,10 +152,10 @@ staging_deploy:
...
@@ -152,10 +152,10 @@ staging_deploy:
-
main
-
main
staging_trigger_unified-api_redeployment
:
staging_trigger_unified-api_redeployment
:
needs
:
[
'
staging_deploy
'
]
needs
:
[
"
staging_deploy
"
]
trigger
:
trigger
:
project
:
'
app/holi-unified-api
'
project
:
"
app/holi-unified-api
"
branch
:
'
main
'
branch
:
"
main
"
only
:
only
:
-
main
-
main
...
@@ -163,7 +163,7 @@ staging_e2e:
...
@@ -163,7 +163,7 @@ staging_e2e:
extends
:
.e2e
extends
:
.e2e
# if staging_e2e would actually run tests (other than ensuring SSL works), we'd have to
# if staging_e2e would actually run tests (other than ensuring SSL works), we'd have to
# wait for the unified-api pipeline to finish.
# wait for the unified-api pipeline to finish.
needs
:
[
'
staging_deploy
'
]
needs
:
[
"
staging_deploy
"
]
only
:
only
:
-
main
-
main
...
@@ -171,7 +171,7 @@ staging_e2e:
...
@@ -171,7 +171,7 @@ staging_e2e:
production_deploy
:
production_deploy
:
extends
:
.deploy
extends
:
.deploy
needs
:
[
'
build_docker
'
]
needs
:
[
"
build_docker
"
]
allow_failure
:
false
allow_failure
:
false
environment
:
environment
:
name
:
production
name
:
production
...
@@ -183,9 +183,9 @@ production_deploy:
...
@@ -183,9 +183,9 @@ production_deploy:
-
production
-
production
production_trigger_unified-api_redeployment
:
production_trigger_unified-api_redeployment
:
needs
:
[
'
production_deploy
'
]
needs
:
[
"
production_deploy
"
]
trigger
:
trigger
:
project
:
'
app/holi-unified-api
'
project
:
"
app/holi-unified-api
"
branch
:
'
production
'
branch
:
"
production
"
only
:
only
:
-
production
-
production
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment