generated from nhs-england-tools/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (22 loc) Β· 972 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include ./scripts/init.mk
include ./scripts/test.mk
DOCKER_IMAGE := ghcr.io/nhs-england-tools/github-runner-image
DOCKER_TITLE := "GitHub Runner Image"
# ==============================================================================
build: # Build Docker images
make build-image name="base"
make build-image name="rt"
publish: # Publish Docker images
make publish-image name="base"
make publish-image name="rt"
# ==============================================================================
build-image: # Build Docker image - optional: name=[image name to build, default is 'base']
dir=infrastructure/images/$(or ${name}, "base") make docker-build
publish-image: # Publish Docker image - optional: name=[image name to publish, default is 'base']
dir=infrastructure/images/$(or ${name}, "base") make docker-push
# ==============================================================================
.SILENT: \
build \
build-image \
publish \
publish-image \