Skip to content

Commit

Permalink
chore(ci): delete unusued deps from ubuntu bootstrap (#21841)
Browse files Browse the repository at this point in the history
* chore(ci): delete unusued deps from ubuntu bootstrap

* add extra permissions to ci workflow

* attempt 2

* attempt 3
  • Loading branch information
pront authored Nov 20, 2024
1 parent 2864d54 commit 6cf6df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create_preview_sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
description: "Request endpoint"
required: true

permissions:
issues: write

jobs:
create_preview_site:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,5 +105,3 @@ jobs:
issue_number: issueNumber,
body: `Your preview site for the **${APP_NAME}** will be ready in a few minutes, please allow time for it to build. \n \n Heres your preview link: \n [${APP_NAME} preview](https://${SANITIZED_BRANCH_NAME}.${APP_ID}.amplifyapp.com)`
});
24 changes: 0 additions & 24 deletions scripts/environment/bootstrap-ubuntu-20.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,30 +124,6 @@ if ! [ -x "$(command -v node)" ]; then
corepack enable
fi

# Hugo (static site generator).
# Hugo is used to build the website content.
# Note: the installed version should match the version specified in 'netlify.toml'
TEMP=$(mktemp -d)
curl \
-L https://github.com/gohugoio/hugo/releases/download/v0.84.0/hugo_extended_0.84.0_Linux-64bit.tar.gz \
-o "${TEMP}/hugo_extended_0.84.0_Linux-64bit.tar.gz"
tar \
-xvf "${TEMP}/hugo_extended_0.84.0_Linux-64bit.tar.gz" \
-C "${TEMP}"
cp "${TEMP}/hugo" /usr/bin/hugo
rm -rf "$TEMP"

# htmltest (HTML checker for the website content)
TEMP=$(mktemp -d)
curl \
-L https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz \
-o "${TEMP}/htmltest_0.17.0_linux_amd64.tar.gz"
tar \
-xvf "${TEMP}/htmltest_0.17.0_linux_amd64.tar.gz" \
-C "${TEMP}"
cp "${TEMP}/htmltest" /usr/bin/htmltest
rm -rf "$TEMP"

# Apt cleanup
apt-get clean

Expand Down

0 comments on commit 6cf6df5

Please sign in to comment.