-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
35 lines (30 loc) · 1004 Bytes
/
Taskfile.yml
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
32
33
34
35
# DPL Shell Taskfile (task.dev)
#
# Builds, tests and pushes builds of container-images for the DPL Shell.
version: '3'
vars:
repository: '{{.IMAGE_URL | default "ghcr.io/danskernesdigitalebibliotek/dpl-platform/dplsh"}}'
tag: '{{.IMAGE_TAG | default "latest"}}'
image: "{{.repository}}:{{.tag}}"
tasks:
build:
desc: Build an image for the shell.
summary: Tag can be specified via the tag environment variable. If omitted the build will assume "latest".
cmds:
- docker build -t {{.image}} --build-arg DPLSH_BUILD_VERSION="{{.tag}}" .
push:
desc: Push a build of the shell to {{.repository}}
vars:
latest: "{{.repository}}:latest"
cmds:
- docker tag {{.image}} {{.latest}}
- docker push {{.image}}
- docker push {{.latest}}
test:
desc: Run a smoke-test against {{.image}}
env:
DPLSH_IMAGE: "{{.image}}"
DPLSH_NON_INTERACTIVE: "true"
cmds:
- ./dplsh.sh terraform -version
- ./dplsh.sh helm version