github.com/openshift/source-to-image@v1.4.1-0.20240516041539-bf52fc02204e/test/integration/scripts/.s2i/bin/assemble (about)

     1  #!/bin/sh
     2  
     3  cp -Rf /tmp/src /sti-fake/
     4  touch /sti-fake/assemble-invoked
     5  
     6  if [ -f /tmp/secret ]; then
     7    grep -q secret /tmp/secret && touch /sti-fake/secret-delivered
     8  fi
     9  
    10  if [ -f /opt/app-root/src/secret ]; then
    11    grep -q secret /opt/app-root/src/secret && touch /sti-fake/relative-secret-delivered
    12  fi
    13  
    14  if [ -e /tmp/artifacts/save-artifacts-invoked ]; then
    15    touch /sti-fake/save-artifacts-invoked
    16  fi
    17  
    18  mkdir -p /tmp/.s2i/
    19  cat > /tmp/.s2i/image_metadata.json << EOL
    20  {
    21    "labels": [
    22      {"testLabel": "testLabel_value"}
    23    ]
    24  }
    25  EOL