Dan Anglin
5fbdaa5a02
This is the first of a few commits for creating the GitLab CI pipeline for building and publishing my CV. This commit adds a pipeline for building and publishing the cv-builder docker image to the GitLab container registry. Additions: - The cv-builder docker image: This commit adds a Dockerfile for building the cv-builder docker image. The image is based on the golang (buster) image and installs ConTeXt (standalone version) and the Carlito font. - The gitlab-ci.yml file: This commit adds the gitlab-ci.yml file for running the pipeline for building and publishing the docker image to the GitLab Container Registry. Changes: - The Makefile now includes targets for building and publishing docker images.
23 lines
393 B
Makefile
23 lines
393 B
Makefile
DOCKERFILE = ./docker/Dockerfile
|
|
IMAGE_NAME ?= cv-builder
|
|
IMAGE_TAG ?= latest
|
|
OUTPUT_DIR = __output/
|
|
|
|
.PHONY: all image publish tex pdf clean
|
|
|
|
all: pdf
|
|
|
|
image:
|
|
@docker build -f $(DOCKERFILE) -t $(IMAGE_NAME):$(IMAGE_TAG) .
|
|
|
|
publish: image
|
|
@docker push $(IMAGE_NAME):$(IMAGE_TAG)
|
|
|
|
tex:
|
|
@go run .
|
|
|
|
pdf: tex
|
|
@mtxrun --path=$(OUTPUT_DIR) --script context cv.tex
|
|
|
|
clean:
|
|
@rm -rf $(OUTPUT_DIR)
|