File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ repository_license() {
43
43
BUILD_CMD=" nixpacks build $INPUT_CONTEXT "
44
44
GHCR_IMAGE_NAME=" ghcr.io/$GITHUB_REPOSITORY "
45
45
46
+ # add NIXPACKS_ prefixed environment variables to the build command
47
+ # https://nixpacks.com/docs/configuration/environment
48
+ for var in $( env | grep ^NIXPACKS_) ; do
49
+ BUILD_CMD=" $BUILD_CMD --env $var "
50
+ done
51
+
46
52
# Incorporate provided input parameters from actions.yml into the Nixpacks build command
47
53
if [ -n " ${INPUT_TAGS} " ]; then
48
54
read -ra TAGS <<< " $(echo " $INPUT_TAGS " | tr ',\n' ' ')"
@@ -73,6 +79,7 @@ if [ -n "$REPO_LICENSE" ]; then
73
79
fi
74
80
75
81
# TODO add the description label as well? Does this add any value?
82
+ # TODO add org.opencontainers.image.title?
76
83
77
84
for label in " ${LABELS[@]} " ; do
78
85
BUILD_CMD=" $BUILD_CMD --label $label "
You can’t perform that action at this time.
0 commit comments