add .npmrc
This commit is contained in:
@@ -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 && \
|
||||
|
||||
15
Taskfile.yml
15
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}}'
|
||||
|
||||
|
||||
1
ctx/home/.npmrc
Normal file
1
ctx/home/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
prefix=~/.local
|
||||
Reference in New Issue
Block a user