add .npmrc
This commit is contained in:
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}}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user