Commit Graph

97 Commits

Author SHA1 Message Date
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
3f270e0f88 Create docker directory before copying file. Add needs to jobs 2021-09-03 21:24:17 +00:00
aee3e59388 Give up and move to project directory and copy back 2021-09-03 21:18:29 +00:00
87f58b9722 Add some debugging information 2021-09-03 21:15:52 +00:00
ace2beebb8 Hard-code entire absolute artifact path 2021-09-03 21:13:43 +00:00
3680425586 Hard-code absolute artifact path 2021-09-03 21:12:09 +00:00
5d31f3e32e Artifact is not being detected, attempt a fix 2021-09-03 21:11:04 +00:00
4b86de69da Refactor out authentication job from build job 2021-09-03 21:03:02 +00:00
8ee09be3d0 Persist docker-login artifact throughout pipeline process 2021-09-03 20:54:01 +00:00
e312581b1b Fix docker login password not being a variable 2021-09-03 20:45:37 +00:00
43d32c5105 Fix docker login syntax 2021-09-03 20:41:53 +00:00
05d507d175 Fix artifacts yaml error 2021-09-03 20:40:45 +00:00
fd795a733d Update .gitlab-ci.yml 2021-09-03 20:39:14 +00:00
bda4e04fee Create a Gitlab CI procedure 2021-09-03 20:38:42 +00:00
f4f1b111fc Implement publish endpoint 2021-09-03 22:02:50 +02:00
f7e4a5051e Setup admin pages for editing and creating blog articles 2021-09-03 21:51:13 +02:00
16786bac64 Implement Laravel's production optimizations 2021-09-03 17:25:00 +02:00
f520b8a0d0 Fix issue with empty strings being interpreted as null 2021-09-03 13:25:47 +02:00
b3f37bab5c Add default value to blog_articles.published column 2021-09-03 13:25:06 +02:00
a84d34138a Enable source maps in development mode 2021-09-03 12:40:23 +02:00
2246100d5d Add deployment process to repo 2021-09-03 11:41:02 +02:00
4018137d6e Force production to use SSL 2021-09-03 01:41:57 +02:00
1bff9c9ba0 Add a build script 2021-09-02 23:48:19 +02:00
4f5f99ccf2 Remove expired auth tokens 2021-09-02 23:36:10 +02:00
d9a418c604 Add a Dockerfile for deployments 2021-09-02 23:35:10 +02:00