Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.26 KB

5.buildasset.md

File metadata and controls

24 lines (21 loc) · 1.26 KB
icon description
folder-arrow-down
Extra Assets/Files Needed during Build (TYPE: NON_ENFORCED)

5.BuildAsset

{% code overflow="wrap" %}

#Example ONLY
#All of the files will be downloaded & added to "${SBUILD_OUTDIR/SBUILD_TEMP}" (Also Known as $SBUILD_TMPDIR prior to running the x_exec part
build_asset:
  - url: "https://example.com/fileA.tar" #Downloaded
    out: "example_01.tar" #Saved as $SBUILD_OUTDIR/SBUILD_TEMP/example_01.tar
  - url: "https://example.com/abc.gif" #Downloaded
    out: "xyz.gif" #Saved as $SBUILD_OUTDIR/SBUILD_TEMP/xyz.gif

{% endcode %}

  • This is Optional & can be left empty or removed completely (TYPE:NON_ENFORCED)
  • This can be used to pull in Static Assets needed for x_exec.run part.
  • Accessible using ${SBUILD_TMPDIR}/$FILE OR $SBUILD_OUTDIR/SBUILD_TEMP/$FILE ENV VARS
  • The benefit of using this over doing it manually in x_exec.run is that it's parallelized & pre-downloaded
  • Can have single or multiple entries