diff --git a/Dockerfile b/Dockerfile index f4f8e2a..58b00cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apk -U --no-cache add \ doas doas-sudo-shim \ bash less openvi \ coreutils grep gawk perl \ - curl + curl bind-tools RUN adduser -h /home/cli -s /bin/bash -D cli cli && \ addgroup cli wheel && \ diff --git a/Taskfile.yml b/Taskfile.yml index 0dd98f7..d181ad0 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -11,14 +11,28 @@ tasks: default: cmds: - task: build + build: desc: build a new image; use CLI_ARGS to pass additional arguments (build -- --no-cache). cmds: - (podman manifest exists {{.IMAGE}}:{{.TAG}} && podman manifest rm {{.IMAGE}}:{{.TAG}}) || true - podman manifest create {{.IMAGE}}:{{.TAG}} - podman build {{.CLI_ARGS}} --platform linux/amd64,linux/arm64 --manifest {{.IMAGE}}:{{.TAG}} {{.CLI_ARGS}} -f Dockerfile ctx + publish: + desc: publish the image with the default tag, 'current', and 'latest' + cmds: + - task: _publish + - task: _publish + vars: + ALT_TAG: 'current' + - task: _publish + vars: + ALT_TAG: 'latest' + + _publish: desc: publish the image + internal: true cmds: - podman tag {{.IMAGE}}:{{.TAG}} {{.REGISTRY}}/{{.IMAGE}}:{{.ALT_TAG}} - echo "${{.REGISTRY_PASS_VAR}}" | podman login {{.REGISTRY}} -u {{.REGISTRY_USER}} --password-stdin @@ -29,3 +43,4 @@ tasks: REGISTRY: ghcr.io REGISTRY_USER: jswank ALT_TAG: '{{.TAG}}' + diff --git a/ctx/home/.npmrc b/ctx/home/.npmrc new file mode 100644 index 0000000..e89b7eb --- /dev/null +++ b/ctx/home/.npmrc @@ -0,0 +1 @@ +prefix=~/.local