https://blue-build.org/ logo
github env vars in snippets?
# questions
r
Is it possible to do something like this?
Copy code
yaml
   - type: containerfile
      snippets:
        - COPY --from=ghcr.io/ublue-os/${nvidia_kmod_container_name}:${nvidia_kmod_container_tag} /rpms /tmp/rpms
a
message has been deleted
g
Nope
Something that I want to do is allow setting variables and secrets in
.arg
and
.secret
files and load those into the docker context which could then be used by the build
r
oh yeah that would be sweet
as a workaround, could i
docker pull
in the action before calling the bluebuild action?
x
you can
COPY --from
, you just can't use
${}
right now
r
right but if i do that outside of bluebuild, will that be fine? as in, if i do it in actions.yml so i have access to env vars, will bluebuild be able to consume it
wait! I could use a Containerfile with bluebuild containerfiles and then find/replace the vars?
lemme try that
@gmpinder @xyny i ended up getting it working using this, which is either cursed or blessed depending on your perspective 😅 <specifically this >
g
Lol clever
2 Views