Update build file
This commit is contained in:
@@ -37,13 +37,11 @@ tasks:
|
|||||||
cd alpine-cli
|
cd alpine-cli
|
||||||
go-task build
|
go-task build
|
||||||
|
|
||||||
# publish the image using the just recipe
|
# publish the image using task
|
||||||
# - set environment variables from the ~/.envdir directory. see
|
# - set environment variables from the ~/.envdir directory. see
|
||||||
# http://smarden.org/runit/chpst.8.html for details on chpst
|
# http://smarden.org/runit/chpst.8.html for details on chpst
|
||||||
# - sudo (-u root) is required to run podman without more setup
|
|
||||||
# - sudo --preserve-env is required to pass environment variables
|
|
||||||
- publish: |
|
- publish: |
|
||||||
cd alpine-cli
|
cd alpine-cli
|
||||||
chpst -e ~/.envdir go-task publish
|
chpst -e ~/.envdir go-task publish
|
||||||
# chpst -e ~/.envdir sudo --preserve-env just registry=docker.io registry_pass_var=DH_PAT publish
|
chpst -e ~/.envdir go-task registry=docker.io registry_pass_var=DH_PAT publish
|
||||||
# chpst -e ~/.envdir sudo --preserve-env just registry=quay.io registry_pass_var=QUAY_PAT publish
|
chpst -e ~/.envdir go-task registry=quay.io registry_pass_var=QUAY_PAT publish
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ tasks:
|
|||||||
- podman manifest push {{.REGISTRY}}/{{.IMAGE}}:{{default .TAG .ALT_TAG}}
|
- podman manifest push {{.REGISTRY}}/{{.IMAGE}}:{{default .TAG .ALT_TAG}}
|
||||||
- podman logout {{.REGISTRY}}
|
- podman logout {{.REGISTRY}}
|
||||||
vars:
|
vars:
|
||||||
REGISTRY_PASS_VAR: GH_PAT
|
REGISTRY_PASS_VAR: '{{.GH_PAT | default .DOCKERHUB_PAT}}'
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: '{{.REGISTRY | default "docker.io"}}'
|
||||||
REGISTRY_USER: jswank
|
REGISTRY_USER: '{{.REGISTRY_USER | default "jswank"}}'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user