Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-app-goodnews
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-goodnews
Commits
c3543cef
Commit
c3543cef
authored
5 months ago
by
Malte Finsterwalder
Browse files
Options
Downloads
Patches
Plain Diff
add --allow-import to deno.json so mprocs startup works without interaction
parent
68a3ce19
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+12
-13
12 additions, 13 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+2
-2
2 additions, 2 deletions
.pre-commit-config.yaml
deno.json
+6
-8
6 additions, 8 deletions
deno.json
with
20 additions
and
23 deletions
.gitlab-ci.yml
+
12
−
13
View file @
c3543cef
...
...
@@ -9,23 +9,23 @@ default:
-
1cpu-4gb
# build on smaller machine
variables
:
API_DOMAIN_PATH
:
"
$CI_PROJECT_DIR/api_domain
"
API_DOMAIN_PATH
:
'
$CI_PROJECT_DIR/api_domain
'
# job templates
.deploy
:
image
:
image
:
name
:
'
europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/hashicorp/terraform:1.6.6'
# default entrypoint is terraform command, but we want to run shell scripts
entrypoint
:
[
"
/bin/sh
"
,
"
-c
"
]
entrypoint
:
[
'
/bin/sh
'
,
'
-c
'
]
variables
:
ENVIRONMENT_ID
:
$CI_ENVIRONMENT_SLUG
artifacts
:
paths
:
-
"
terraform/environments/crash.log
"
# optional, only available in case of a crash/panic
-
"
terraform/environments/terraform-*.log
"
# separate log for every step/command
-
'
terraform/environments/crash.log
'
# optional, only available in case of a crash/panic
-
'
terraform/environments/terraform-*.log
'
# separate log for every step/command
-
$API_DOMAIN_PATH
name
:
"
${CI_JOB_NAME}_${CI_JOB_ID}
"
name
:
'
${CI_JOB_NAME}_${CI_JOB_ID}
'
#when: on_failure
expire_in
:
1 week
script
:
...
...
@@ -67,7 +67,7 @@ sast:
needs
:
[
'
cache_lint_test'
]
stage
:
test
include
:
-
template
:
Security/SAST.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
build_docker
:
needs
:
[
'
cache_lint_test'
]
...
...
@@ -83,7 +83,7 @@ build_docker:
-
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
## review environments
## review environments
review_deploy
:
extends
:
.deploy
...
...
@@ -111,7 +111,7 @@ review_destroy:
image
:
name
:
'
europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/hashicorp/terraform:1.6.6'
# default entrypoint is terraform command, but we want to run shell scripts
entrypoint
:
[
"
/bin/sh
"
,
"
-c
"
]
entrypoint
:
[
'
/bin/sh
'
,
'
-c
'
]
variables
:
# has to be set to none for auto stop
GIT_STRATEGY
:
none
...
...
@@ -122,9 +122,9 @@ review_destroy:
dependencies
:
[]
# explicitly disable artifact usage
artifacts
:
paths
:
-
"
terraform/environments/crash.log
"
# optional, only available in case of a crash/panic
-
"
terraform/environments/terraform-*.log
"
# separate log for every step/command
name
:
"
${CI_JOB_NAME}_${CI_JOB_ID}
"
-
'
terraform/environments/crash.log
'
# optional, only available in case of a crash/panic
-
'
terraform/environments/terraform-*.log
'
# separate log for every step/command
name
:
'
${CI_JOB_NAME}_${CI_JOB_ID}
'
when
:
on_failure
expire_in
:
1 week
script
:
...
...
@@ -194,4 +194,3 @@ production_trigger_unified-api_redeployment:
branch
:
'
production'
only
:
-
production
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
2
−
2
View file @
c3543cef
repos
:
-
repo
:
local
-
repo
:
local
hooks
:
-
id
:
gitleaks
-
id
:
gitleaks
name
:
gitleaks
language
:
system
entry
:
gitleaks protect --staged -v -c ../.gitleaks.toml
...
...
This diff is collapsed.
Click to expand it.
deno.json
+
6
−
8
View file @
c3543cef
...
...
@@ -5,11 +5,11 @@
"fmt"
:
"deno fmt"
,
"fmt:check"
:
"deno fmt --check"
,
"test"
:
"deno test"
,
"updateDeps"
:
"deno cache --lock=deno.lock --lock-write app/deps.ts app/dev_deps.ts"
,
"install"
:
"deno cache --reload --lock=deno.lock app/deps.ts app/dev_deps.ts"
,
"cache"
:
"deno cache app/main.ts"
,
"dev"
:
"deno run --allow-net --allow-env --lock=deno.lock --cached-only --watch app/main.ts"
,
"start"
:
"deno run --allow-net --allow-env --lock=deno.lock --cached-only app/main.ts"
,
"updateDeps"
:
"deno cache
--allow-import
--lock=deno.lock --lock-write app/deps.ts app/dev_deps.ts"
,
"install"
:
"deno cache
--allow-import
--reload --lock=deno.lock app/deps.ts app/dev_deps.ts"
,
"cache"
:
"deno cache
--allow-import
app/main.ts"
,
"dev"
:
"deno run
--allow-import
--allow-net --allow-env --lock=deno.lock --cached-only --watch app/main.ts"
,
"start"
:
"deno run
--allow-import
--allow-net --allow-env --lock=deno.lock --cached-only app/main.ts"
,
"docker"
:
"docker build -t goodnews-api . && docker run -it --init -p 8002:8002 goodnews-api"
,
"coverage"
:
"deno test --coverage=coverage && deno coverage coverage"
,
"pre-commit"
:
{
...
...
@@ -22,8 +22,6 @@
"lineWidth"
:
120
,
"singleQuote"
:
true
,
"semiColons"
:
false
,
"exclude"
:
[
"*.md"
]
"exclude"
:
[
"*.md"
]
}
}
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