mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +00:00
Add Netlify CLI to Linux images (#1361)
This commit is contained in:
22
images/linux/scripts/installers/netlify.sh
Normal file
22
images/linux/scripts/installers/netlify.sh
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
################################################################################
|
||||||
|
## File: netlify.sh
|
||||||
|
## Desc: Installs the Netlify CLI
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Source the helpers for use with the script
|
||||||
|
source $HELPER_SCRIPTS/document.sh
|
||||||
|
|
||||||
|
# Install the Netlify CLI
|
||||||
|
npm i -g netlify-cli
|
||||||
|
|
||||||
|
# Validate the installation
|
||||||
|
echo "Validate the installation"
|
||||||
|
if ! command -v netlify; then
|
||||||
|
echo "Netlify CLI was not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Document the installed version
|
||||||
|
echo "Document the installed version"
|
||||||
|
DocumentInstalledItem "Netlify CLI ($(netlify --version))"
|
||||||
@@ -200,7 +200,8 @@
|
|||||||
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
||||||
"{{template_dir}}/scripts/installers/mongodb.sh",
|
"{{template_dir}}/scripts/installers/mongodb.sh",
|
||||||
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
||||||
"{{template_dir}}/scripts/installers/swig.sh"
|
"{{template_dir}}/scripts/installers/swig.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/netlify.sh"
|
||||||
],
|
],
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"METADATA_FILE={{user `metadata_file`}}",
|
"METADATA_FILE={{user `metadata_file`}}",
|
||||||
|
|||||||
@@ -204,7 +204,8 @@
|
|||||||
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
||||||
"{{template_dir}}/scripts/installers/mongodb.sh",
|
"{{template_dir}}/scripts/installers/mongodb.sh",
|
||||||
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
||||||
"{{template_dir}}/scripts/installers/swig.sh"
|
"{{template_dir}}/scripts/installers/swig.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/netlify.sh"
|
||||||
],
|
],
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"METADATA_FILE={{user `metadata_file`}}",
|
"METADATA_FILE={{user `metadata_file`}}",
|
||||||
|
|||||||
@@ -205,7 +205,8 @@
|
|||||||
"{{template_dir}}/scripts/installers/vercel.sh",
|
"{{template_dir}}/scripts/installers/vercel.sh",
|
||||||
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
"{{template_dir}}/scripts/installers/dpkg-config.sh",
|
||||||
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
"{{template_dir}}/scripts/installers/rndgenerator.sh",
|
||||||
"{{template_dir}}/scripts/installers/swig.sh"
|
"{{template_dir}}/scripts/installers/swig.sh",
|
||||||
|
"{{template_dir}}/scripts/installers/netlify.sh"
|
||||||
],
|
],
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"METADATA_FILE={{user `metadata_file`}}",
|
"METADATA_FILE={{user `metadata_file`}}",
|
||||||
|
|||||||
Reference in New Issue
Block a user