Update build file

This commit is contained in:
Jason Swank
2026-02-06 01:47:41 +00:00
parent a23415c69a
commit 86a1265042
2 changed files with 6 additions and 8 deletions

View File

@@ -37,13 +37,11 @@ tasks:
cd alpine-cli
go-task build
# publish the image using the just recipe
# publish the image using task
# - set environment variables from the ~/.envdir directory. see
# 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: |
cd alpine-cli
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 sudo --preserve-env just registry=quay.io registry_pass_var=QUAY_PAT publish
chpst -e ~/.envdir go-task registry=docker.io registry_pass_var=DH_PAT publish
chpst -e ~/.envdir go-task registry=quay.io registry_pass_var=QUAY_PAT publish

View File

@@ -45,7 +45,7 @@ tasks:
- podman manifest push {{.REGISTRY}}/{{.IMAGE}}:{{default .TAG .ALT_TAG}}
- podman logout {{.REGISTRY}}
vars:
REGISTRY_PASS_VAR: GH_PAT
REGISTRY: ghcr.io
REGISTRY_USER: jswank
REGISTRY_PASS_VAR: '{{.GH_PAT | default .DOCKERHUB_PAT}}'
REGISTRY: '{{.REGISTRY | default "docker.io"}}'
REGISTRY_USER: '{{.REGISTRY_USER | default "jswank"}}'