alpine-cli/.build.yml
2023-03-13 09:41:19 -04:00

35 lines
918 B
YAML

image: alpine/edge
secrets:
- 0f9c437f-5dfc-49f1-abfb-0030f265c018
- f523ee29-5ef8-490f-8903-43ad7c49060b
sources:
- https://git.sr.ht/~jswank/alpine-cli
packages:
- podman
- just
- runit
tasks:
# cgroups need to be running in order to run podman
- prep: |
sudo rc-service cgroups start
sleep 1
# build the image using the just recipe
# - sudo (-u root) is required to run podman without more setup
- build: |
cd alpine-cli
sudo --preserve-env just build
# publish the image using the just recipe
# - 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 sudo --preserve-env just publish