Commit graph

8 commits

Author SHA1 Message Date
d5d82d6ff7
ci: update Dockerfile and hadolint 2022-02-01 21:50:43 +00:00
84b29f0467
feat: build the magefile into a binary
This commit builds the magefile into a binary during the docker build
stage.
The Dockerfile is updated to include a multi-stage build where the first
stage compiles the binary and the second stage builds the final
cv-builder image.
The final image is now based on debian:buster instead of
golang:<VERSION>-buster which significantly reduces the image's size.
2020-09-13 22:50:17 +01:00
0dac49356c
ci: add a release pipeline
This commit adds a release pipeline for publishing my CV online to the project's
release page and also privately to a mounted volume on my personal machine.
The release pipeline is triggered for every tagged commit that uses the date
versioning scheme (e.g. 2021.09.21).

Changes include:

- added tags to all jobs so private runners are used.
- added a build stage.
- added a build job to build the CV for merge requests.
- added a build job to build the CV for the release pipeline.
- the build job for the release pipeline adds the CV to an artifacts that expire after 1 year.
- created a publish job for publishing the CV online to the project's release page.
- created a publish job for publishing the CV privately to a mounted volume on the private runner.
- small updates in the README.
- removed the CV file from the repository.
- removed the job that publishes the CV PDF file to the master branch.
2020-08-15 20:22:00 +01:00
5fd72b045a
refactor: replace make with mage
This commit removes the Makefile and uses mage to build the CV files and Docker images.

Changes include:

- All make targets are re-written in go in magefile.go
- The spellcheck script is now written in go and is part of the magefile
- Created mage.go to remove dependency on a mage binary
- Updated CI pipelines to use mage
- Removed unused Makefile
- Removed unused spellcheck bash script
- Cleaned up .gitignore
- Updated .aspell/.aspell.en.pws

NOTE: The updated pipeline for generating the docker image is untested for this MR.
2020-08-09 05:08:30 +01:00
ac558faaa9
ci: fix pipeline workflow and job rules
- use upstream template workflow.
- always run CV test jobs unless certain files are changed.
- clean up Dockerfile test job rules.
- clean up publish job rules.
2020-08-08 06:56:51 +01:00
ef50b88032
ci: workflow and rules
This commit brings the CI pipeline configuration up to date.

Changes include:

- add workflow rules.
- remove only/except syntax in favourof rules.
- update ref to CV builder image.
- add Dockerfile linting as part of the test stage.
- fix linting issues in Dockerfile.
2020-08-08 04:36:13 +01:00
cb8a29c796
ci: updated container images for docker build 2020-08-04 00:50:01 +01:00
b75a5c1eea
ci: add pipeline for publishing CV.
The following changes are included in this commit:

- add a pipeline for publishing the output CV to
the master branch when a change has been
committed to the master branch.

- split the CI configuration into two files:
one for the docker build pipeline and the other
for the CV build pipeline.
2019-12-22 02:53:11 +00:00