Commit Graph

232 Commits

Author SHA1 Message Date
Collin J. Doering 913c2f0e67
.drone/ci.libsonnet: Add and renamed methods relocated from .drone.jsonnet: guix.pipeline, guix.step, awsDeployStep
* .drone.yml: Update file after updates to .drone.jsonnet

* .drone.jsonnet: Relocate guix_pipeline, guix_step, and deployStep to .drone/ci.libsonnet
library. Adjust existing function names to match new names in library.

Explicitly pass PLAN environment variable to ci.awsDeployStep for plan and apply stages
2021-12-11 13:19:55 -05:00
Collin J. Doering eaf41637ab
.gitignore: Do not ignore hidden files 2021-12-11 12:53:30 -05:00
Collin J. Doering 284abdf916
.drone.jsonnet: Move ci local to its own library in .drone/ci.libsonnet 2021-12-11 12:53:01 -05:00
Collin J. Doering faad56813b
.drone.jsonnet: Remove setting of root user in /etc/passwd
Adding the root user to /etc/passwd was only required when attempting to run guix shell
`-C|--container' commands, however guix shell containers will not work without privileged
docker, so when running via ci, we depend on the provided minimal guix container (build with
guix via 'guix pack -f docker ...').
2021-12-10 22:32:42 -05:00
Collin J. Doering 572f00a79a
README.org: Set drone ci badge to use the master branch 2021-12-09 23:18:41 -05:00
Collin J. Doering 4a1bbf41bf
.drone.jsonnet: Remove unnecessary comment 2021-12-09 23:18:20 -05:00
Collin J. Doering 1c5aeba23e
.dron.jsonnet: Reorganize jsonnet; no change to yaml output 2021-12-09 23:03:53 -05:00
Collin J. Doering 7fc316a171
README.org: Update drone status badge after repository move 2021-12-09 20:42:17 -05:00
Collin J. Doering b9ee2f8266
.drone.jsonnet: Addionally wait for pending status during promotion 2021-12-09 20:11:33 -05:00
Collin J. Doering 5c4138d4d4
.drone.jsonnet: Correct promoted pipeline status checking 2021-12-09 20:08:46 -05:00
Collin J. Doering 9b167b4d9d
.drone.jsonnet: Export DRONE_TOKEN so its available in subprocess 2021-12-09 19:37:02 -05:00
Collin J. Doering 880978c9a1
.drone.jsonnet: Use correct site build during ci
This makes the assumption that the guix store is available from all drone-ci nodes
2021-12-09 18:12:57 -05:00
Collin J. Doering f11fbdd3f4
infra/Makefile: Remove CI env var check for terraform workspace switching 2021-12-09 12:50:08 -05:00
Collin J. Doering ec708bcf29
Revert ".drone.jsonnet: TEST - why is the setup step not switching workspaces?"
This reverts commit 5d00301c86.
2021-12-09 12:49:52 -05:00
Collin J. Doering 5d00301c86
.drone.jsonnet: TEST - why is the setup step not switching workspaces? 2021-12-09 12:42:00 -05:00
Collin J. Doering b162752ce6
.drone.jsonnet: Do not use guix shell containerization as it fails within non-privileged docker 2021-12-09 12:17:43 -05:00
Collin J. Doering bc19c03d75
.drone.jsonnet: Fix issue specific to running guix shell/environment via drone-ci 2021-12-09 11:59:51 -05:00
Collin J. Doering 6a00da6970
.drone.jsonnet: Explicitly specify manifest to use for deploySteps 2021-12-09 10:42:47 -05:00
Collin J. Doering 920fe7d9f4
Enhance drone pipeline and switch to jsonnet based configuration
* .drone.yml: This is now a generated file, based on .drone.jsonnet

* .drone.jsonnet: Add jsonnet drone pipeline configuration to replace existing .drone.yml
file. Note, currently this is used to manually generate .drone.yml. I need to determine how
to handle jsonnet libraries effectively as drone's built in jsonnet support does not allow
for importing libraries. In addition to converting to jsonnet, the pipeline was enhanced with
promotion and deployment functionality that has not yet been tested.
2021-12-09 10:34:37 -05:00
Collin J. Doering 5c2f33456e
README.org: Write build and clean sections in development guide 2021-12-07 21:17:32 -05:00
Collin J. Doering 46d25cd912
Remove top-level manifest.scm as package in guix.scm is sufficient
* manifest.scm: Removed in favor of guix.scm and the blog-rekahsoft-ca package definition within it

* guix.scm: Add environment variable PS1 that was formally set by manifest.scm

* README.org (Start Development Environment): Update guix commands used now that there is no top-level manifest.scm
2021-12-07 21:17:29 -05:00
Collin J. Doering 1dae28b6f4
README.org: Improve grammar make README read more clearly 2021-12-07 00:28:45 -05:00
Collin J. Doering b1476560ec
.gitignore: Update terraform entries 2021-12-07 00:24:29 -05:00
Collin J. Doering 0b47b38f61
TODO.org: (Invalid page urls load as the home page): Add new TODO 2021-12-06 23:31:09 -05:00
Collin J. Doering 1e1ae99446
Use guix for managing the required deployment environment
* infra/variables.tf: Add new variable 'site_statis_files_dir'

	* infra/manifest.scm: Add guix manifest that captures all tools required for deploying this site. This currently includes terraform, in use terraform providers, as well as awscliv2  which is used directly from a null resource

	* infra/main.tf: Pin all provider version so they are available from the rekahsoft-guix channel
	Remove the need for the template provider. It is still included as these changes need to be applied to all environments before it can be removed.
	Remove TF-UPGRAGE-TODO's
	Use the new variable 'site_static_files_dir' for the location of the static site files to be deployed

	* channels.scm (channel): Add symlink to top-level channels file

	* infra/Makefile (SELECTED_WORKSPACE): Removed the dependency on terraform
	(clean): Add new PHONY target 'clean' which cleans up terraform temporary files
	(workspace): Add new PHONY target 'workspace which switches to user provided ENV

	* channels.scm (channel): Updated rekahsoft-guix channel

	* README.org (Features): Updated sections on deployment
2021-12-06 22:25:05 -05:00
Collin J. Doering ee09fc99b8
channels.scm: Update guix and rekahsoft-guix 2021-12-05 04:08:14 -05:00
Collin J. Doering 5ba926b5d2
.drone.yml: Remove --with-source option during ci builds 2021-12-01 23:38:33 -05:00
Collin J. Doering 4b18054324
guix.scm: Use git commit in version string 2021-12-01 23:36:59 -05:00
Collin J. Doering 29dc67c881
README.org: Move 'Known Issues' to TODO.org 2021-11-30 23:40:03 -05:00
Collin J. Doering dd6434b4ee
README.org: Update documentation now that site script is included in package 2021-11-30 23:40:00 -05:00
Collin J. Doering fd15b80b62
Use git source instead of tarball for blog-rekahsoft-ca package
* manifest.scm:
* guix.scm: Prefix global variables with '%'; use git source for blog-rekahsoft-ca package
2021-11-30 23:34:19 -05:00
Collin J. Doering ff1d13a670
src/site.hs: Fix compiler warnings about unused modules/redundant imports 2021-11-29 09:48:12 -05:00
Collin J. Doering e69f751011
Include site script in package and build site as another package output 2021-11-29 09:48:03 -05:00
Collin J. Doering 50f14dfa8d
.drone.yml: Remove ci test 2021-11-28 23:20:46 -05:00
Collin J. Doering c9ad841f53
README.org: Update development documentation 2021-11-28 23:19:40 -05:00
Collin J. Doering fc40cc18d1
manifest.scm: Removed unneeded development tools 2021-11-28 14:20:24 -05:00
Collin J. Doering 3ebc0b1bbd
.drone.yml: TEST 2021-11-28 06:43:38 -05:00
Collin J. Doering fc2fe49022
.drone.yml: TEST 2021-11-28 01:42:26 -05:00
Collin J. Doering 5dfb1b88ee
site: Remove test command from site as the test suite was removed in 84735e9a 2021-11-27 23:52:32 -05:00
Collin J. Doering 10a72486a5
.gitignore: Remove .stack 2021-11-27 23:43:57 -05:00
Collin J. Doering d6464b8ac7
Remove application cache functionality now that its deprecated 2021-11-27 23:43:22 -05:00
Collin J. Doering 6c7fa76f4a
templates/default.js: Update MathJax cdn url 2021-11-27 23:41:12 -05:00
Collin J. Doering 8f47caede9
README.org: Include droneci badge directly as html 2021-11-26 21:18:38 -05:00
Collin J. Doering 7d59eb100b
Remove stack.yaml{,.lock} 2021-11-26 08:08:52 -05:00
Collin J. Doering b1875dfc27
Update copyright year/s 2021-11-26 08:08:34 -05:00
Collin J. Doering df02a2a62d
README.org: Add droneci badge and adjust title a last time
Note: there is a bug in gitea rendering of org-mode files which results in additional space
at the top of the document.
2021-11-26 08:07:36 -05:00
Collin J. Doering a1dbf95c49
.drone.yml: Fix reference to renamed file blog-rekahsoft-ca.scm -> guix.scm 2021-11-26 01:51:31 -05:00
Collin J. Doering b40ff4f4ad
README.org: Fix title spacing 2021-11-26 01:46:49 -05:00
Collin J. Doering 2f3d052cd6
README.org: Fix title spacing 2021-11-26 01:41:54 -05:00
Collin J. Doering 7d679dd94b
README.org: Add more known issues and fix title spacing 2021-11-26 01:39:46 -05:00