Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
e33e1b8b
Commit
e33e1b8b
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Merging develop into main See merge request
!21
parents
662a6458
dde12924
No related branches found
No related tags found
1 merge request
!21
Merging develop into main
Pipeline
#525207
passed
2 years ago
Stage: test
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
composer.json
+3
-1
3 additions, 1 deletion
composer.json
src/Handler.php
+7
-7
7 additions, 7 deletions
src/Handler.php
with
11 additions
and
8 deletions
.gitignore
+
1
−
0
View file @
e33e1b8b
...
...
@@ -3,3 +3,4 @@
/composer.lock
/.ahoy.l3d
/.ahoy.yml
/.lakedrops.yml
This diff is collapsed.
Click to expand it.
composer.json
+
3
−
1
View file @
e33e1b8b
...
...
@@ -58,7 +58,9 @@
},
"config"
:
{
"allow-plugins"
:
{
"lakedrops/ahoy"
:
true
"dealerdirect/phpcodesniffer-composer-installer"
:
true
,
"lakedrops/ahoy"
:
false
,
"lakedrops/drupal-environment"
:
false
}
}
}
This diff is collapsed.
Click to expand it.
src/Handler.php
+
7
−
7
View file @
e33e1b8b
...
...
@@ -519,14 +519,14 @@ class Handler extends BaseHandler {
'dest'
=>
$projectRoot
.
'/backup'
,
'condition'
=>
$this
->
config
->
readValue
([
'backup'
,
'enable'
]),
];
$files
[
'crontab.txt'
]
=
[
$files
[
'crontab.txt'
]
=
[
'source'
=>
'backup/'
,
'dest'
=>
$projectRoot
.
'/backup'
,
'condition'
=>
$this
->
config
->
readValue
([
'backup'
,
'enable'
]),
];
// Manage crontabs and optionally add them to heathcheck-io
$hj_
api_
url
=
getenv
(
'HEALTHCHECK_
API_
URL'
);
// Manage crontabs and optionally add them to heathcheck-io
.
$hj_url
=
getenv
(
'HEALTHCHECK_URL'
);
$hj_api_key
=
getenv
(
'HEALTHCHECK_API_KEY'
);
$hj_api_channels
=
getenv
(
'HEALTHCHECK_API_CHANNELS'
);
$hj_project
=
$this
->
config
->
readValue
(
'projectname'
);
...
...
@@ -535,8 +535,8 @@ class Handler extends BaseHandler {
$hj_checks
=
[];
$hj_manager
=
NULL
;
if
(
!
empty
(
$hj_
api_
url
)
&&
!
empty
(
$hj_api_key
))
{
$hj_manager
=
new
HealthchecksManager
(
$hj_api_key
,
$hj_
api_url
);
if
(
!
empty
(
$hj_url
)
&&
!
empty
(
$hj_api_key
))
{
$hj_manager
=
new
HealthchecksManager
(
$hj_api_key
,
$hj_
url
.
'/api/v1/'
);
try
{
$hj_checks
=
$hj_manager
->
listChecks
();
}
...
...
@@ -575,14 +575,14 @@ class Handler extends BaseHandler {
}
if
(
!
$check
)
{
if
(
$disabled
)
{
// This task is disabled
. A
s it doesn't exist yet, nothing to do.
// This task is disabled
a
s it doesn't exist yet, nothing to do.
continue
;
}
try
{
$check
=
$hj_manager
->
createCheck
(
$task
);
$parts
=
explode
(
'/'
,
$check
[
'ping_url'
]);
$uuid
=
array_pop
(
$parts
);
$hj_check
=
new
Healthchecks
(
$uuid
);
$hj_check
=
new
Healthchecks
(
$uuid
,
$hj_url
.
'/ping/'
);
$hj_check
->
success
();
}
catch
(
HealthchecksFailureException
|
HealthchecksUuidNotFoundException
|
HealthchecksAccountLimitReachedException
|
HealthchecksUnauthorisedException
$e
)
{
...
...
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