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
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