Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
265
Merge Requests
28
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
dcaea0d4
Commit
dcaea0d4
authored
3 hours ago
by
Mark Harding
Browse files
Options
Download
(chore): ci fixes
parent
7e2c2364
epic/SSR
1 merge request
!196
WIP: Frontend rendering module
Pipeline
#109001909
failed with stages
in 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
.gitlab-ci.yml
View file @
dcaea0d4
...
...
@@ -16,7 +16,7 @@ build:
-
apk add --no-cache git
-
sh tools/setup.sh production
artifacts
:
name
:
'
$CI_COMMIT_REF_SLUG'
name
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
vendor
-
bin
...
...
@@ -39,7 +39,7 @@ prepare:fpm:
services
:
-
docker:dind
script
:
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
-
|
docker build \
-t $CI_REGISTRY_IMAGE/fpm:$CI_PIPELINE_ID \
...
...
@@ -80,27 +80,27 @@ review:start:
image
:
minds/helm-eks:latest
script
:
-
aws eks update-kubeconfig --name=sandbox
-
git clone --branch=
master
https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/minds/helm-charts.git
-
git clone --branch=
epic/SSR
https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/minds/helm-charts.git
-
echo "Upgrading helm for pipeline ${CI_PIPELINE_ID}"
-
echo "Setting to image ${CI_REGISTRY_IMAGE}"
-
"
helm
upgrade
\
--install
\
--reuse-values
\
--set
phpfpm.image.repository=$CI_REGISTRY_IMAGE/fpm
\
--set-string
phpfpm.image.tag=$CI_PIPELINE_ID
\
--set
runners.image.repository=$CI_REGISTRY_IMAGE/runners
\
--set-string
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
\
$CI_BUILD_REF_SLUG
\
./helm-charts/minds"
--install
\
--reuse-values
\
--set
phpfpm.image.repository=$CI_REGISTRY_IMAGE/fpm
\
--set-string
phpfpm.image.tag=$CI_PIPELINE_ID
\
--set
runners.image.repository=$CI_REGISTRY_IMAGE/runners
\
--set-string
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
\
$CI_BUILD_REF_SLUG
\
./helm-charts/minds"
-
sentry-cli releases deploys $CI_PIPELINE_ID new -e review-$CI_COMMIT_REF_SLUG
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN
on_stop
:
review:stop
except
:
except
:
refs
:
-
master
-
test/gitlab-ci
...
...
@@ -118,7 +118,7 @@ review:stop:
variables
:
GIT_STRATEGY
:
none
when
:
manual
except
:
except
:
refs
:
-
master
-
test/gitlab-ci
...
...
@@ -157,7 +157,7 @@ staging:fpm:
environment
:
name
:
staging
url
:
https://www.minds.com/?staging=1
only
:
only
:
refs
:
-
master
-
test/gitlab-ci
...
...
This diff is collapsed.
Core/Security/XSRF.php
View file @
dcaea0d4
...
...
@@ -17,6 +17,10 @@ class XSRF
public
static
function
validateRequest
()
{
if
(
!
Core\Session
::
isLoggedIn
()
&&
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
return
true
;
// If logged out and GET request we can accept
}
if
(
!
isset
(
$_SERVER
[
'HTTP_X_XSRF_TOKEN'
]))
{
return
false
;
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment