Commit Graph

121 Commits

Author SHA1 Message Date
7b61999c9f Update build to use new cluster stuff, coolbeans 2022-04-21 22:39:55 +02:00
f50f660346 Merge branch '6-mysql-connectivity' into 'master'
Change the hostname to localhost due to containers living in same pod

Closes #6

See merge request daniel/personal-website!8
2021-09-19 17:37:03 +00:00
de544d1359 Change the hostname to localhost due to containers living in same pod 2021-09-19 19:32:25 +02:00
bdd224a4af Merge branch '6-mysql-connectivity' into 'master'
Resolve "MySQL connectivity"

Closes #6

See merge request daniel/personal-website!7
2021-09-19 17:05:07 +00:00
0b63b8da21 Add a wait check for mysql connectivity 2021-09-19 18:58:13 +02:00
7925576697 Merge branch '5-kubernetes-join-containers-into-same-pod' into 'master'
Resolve "Kubernetes join containers into same pod"

Closes #5

See merge request daniel/personal-website!6
2021-09-19 15:53:59 +00:00
86db34cc73 Refactor k3s configuration 2021-09-19 17:44:39 +02:00
4d9f220644 Make admin panel slightly nicer 2021-09-05 18:59:56 +02:00
f9d9031c33 Merge branch '3-test-pipeline-fails-to-connect-to-mysql-service' into 'master'
Resolve "Test pipeline fails to connect to MySQL service"

Closes #3

See merge request daniel/personal-website!4
2021-09-05 16:34:20 +00:00
c1cf6a0633 Install and enable pdo_mysql PHP extension 2021-09-05 18:29:14 +02:00
fe8e9a8943 --env only needs the suffix 2021-09-05 18:15:09 +02:00
d9f95f1de9 Apply the env vars to the .env.testing file 2021-09-05 18:08:26 +02:00
ad21930ca0 Migrate database before running tests 2021-09-05 17:53:33 +02:00
79e9ab156d Change home page text 2021-09-05 17:53:22 +02:00
5f7503dcb3 Expanded the cluster, so keep deployment in check 2021-09-04 19:33:46 +02:00
0564cc9e20 Add blockquote, code, details and table support to the markdown editor. 2021-09-04 19:03:49 +02:00
525086c58c Only count views when requesting endpoint from Vue.js 2021-09-04 16:24:40 +02:00
b1d5046ed0 Remove views from blog article factory 2021-09-04 15:41:34 +02:00
a8a008314e Fix issue with deploy when commit hash is entirely numbers 2021-09-04 15:17:39 +02:00
99166666a3 Merge branch '2-gitlab-ci-cd-pipeline-does-not-do-any-linting-or-testing' into 'master'
Resolve "Gitlab CI/CD Pipeline does not do any linting or testing"

Closes #2

See merge request daniel/personal-website!3
2021-09-04 13:05:44 +00:00
d594e264ac Switch to calling phpunit directly to allow coverage-text to be printed, read that text into pipeline report 2021-09-04 14:57:55 +02:00
a40bd89d10 Yarn comes preinstalled with the node docker image 2021-09-04 14:43:38 +02:00
1d4af01bcf Add node-build-job in order to create mix-manifest 2021-09-04 14:39:28 +02:00
02b487191c Artisan undocumented functionality seems to be the cause... 2021-09-04 14:33:10 +02:00
51cd79505c Add even more debugging 2021-09-04 14:29:32 +02:00
87159673a5 Add some debugging of the env files 2021-09-04 14:17:27 +02:00
3f7744e51c Add coverage reporting back in 2021-09-04 14:17:15 +02:00
602729d07c Move env copy to test job 2021-09-04 14:11:06 +02:00
b289a4725b PHPUnit uses .env.testing by default, so that file needs to contain the APP_KEY 2021-09-04 14:06:11 +02:00
a398558614 Read the .env file before running phpunit 2021-09-04 13:55:59 +02:00
c7a6e20fad Cache vendor folder between builds 2021-09-04 13:55:49 +02:00
55f6c5a7e1 Configure env file during php-build 2021-09-04 13:50:11 +02:00
8858cb7a1e Remove the yes pipe, since the pipeline is inexplicably failing 2021-09-04 13:45:51 +02:00
c7704c11b4 First attempt of adding CI/CD for php 2021-09-04 13:32:35 +02:00
81356ac945 Merge branch '1-view-count' into 'master'
Resolve "View Count"

Closes #1

See merge request daniel/personal-website!2
2021-09-04 10:36:16 +00:00
a03989f0e2 Add note to fix sanctum when using non-standard port 2021-09-04 12:35:16 +02:00
bdc71ded13 Ensure api is stateful for requests from Vue.js 2021-09-04 12:10:12 +02:00
5c260b98f6 Implement new view count system on blog article 2021-09-04 12:09:42 +02:00
13eb273772 Remove old views system for blog articles 2021-09-04 12:09:14 +02:00
aaa483289a Install views plugin 2021-09-04 10:35:20 +02:00
a8f67c33f2 Apply cache-busting in production 2021-09-04 00:23:09 +02:00
78743fcc28 Remove now unnecessary force of https 2021-09-04 00:22:50 +02:00
13c7de9347 Switch to mix for assets 2021-09-04 00:22:00 +02:00
1ac555734c Condense docker jobs into docker stage 2021-09-04 00:21:35 +02:00
13ed04fc6d Only do anything CI/CD with docker on the master branch 2021-09-04 00:09:33 +02:00
aca59a2b22 Remove Recreate requirement from website container
It doesn't have any RWO volumes that would require it.
2021-09-04 00:07:50 +02:00
fbcac2ad76 Remove force redeploy commands from CI/CD as tag change now causes redeploy 2021-09-04 00:07:08 +02:00
affe3166db Merge branch 'gitlab-ci' into 'master'
Implement CI/CD

This CI/CD has four steps:
- Authenticate to private Docker registry
- Build the Docker image based on the Dockerfile
- Push the Docker image to the Docker registry
- Publish the changes to the Kubernetes cluster

See merge request daniel/personal-website!1
2021-09-03 22:00:26 +00:00
b280f1ec52 Only allow deploy on master branch 2021-09-03 21:50:40 +00:00
fe38f88e73 Replace container image dynamically using kustomization.yaml 2021-09-03 23:40:13 +02:00