Skip to content

Commit

Permalink
Curl cf8-cli directly from github releases (#4276)
Browse files Browse the repository at this point in the history
* Use direct .deb link

* Use curl

* Remove commented code for old method
  • Loading branch information
asteel-gsa authored Sep 12, 2024
1 parent eaad320 commit e84a236
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/terraform-apply-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ jobs:
apt-get install -y zip python
# Install CF CLI
mkdir -p /etc/apt/keyrings/
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/cf.gpg > /dev/null
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
apt-get update && DEBIAN_FRONTEND=noninteractive
apt-get install --assume-yes cf8-cli
curl -k -O -L https://github.com/cloudfoundry/cli/releases/download/v8.8.0/cf8-cli-installer_8.8.0_x86-64.deb
apt-get install --assume-yes ./cf8-cli-installer_8.8.0_x86-64.deb
cf api api.fr.cloud.gov
cf auth ${{ secrets.CF_USERNAME }} ${{ secrets.CF_PASSWORD }}
TF_VAR_postgrest_image: 'ghcr.io/gsa-tts/fac/postgrest:latest'
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/terraform-plan-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ jobs:
apt-get install -y zip python
# Install CF CLI
mkdir -p /etc/apt/keyrings/
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/cf.gpg > /dev/null
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
apt-get update && DEBIAN_FRONTEND=noninteractive
apt-get install --assume-yes cf8-cli
curl -k -O -L https://github.com/cloudfoundry/cli/releases/download/v8.8.0/cf8-cli-installer_8.8.0_x86-64.deb
apt-get install --assume-yes ./cf8-cli-installer_8.8.0_x86-64.deb
cf api api.fr.cloud.gov
cf auth ${{ secrets.CF_USERNAME }} ${{ secrets.CF_PASSWORD }}
TF_VAR_postgrest_image: 'ghcr.io/gsa-tts/fac/postgrest:latest'
Expand Down

0 comments on commit e84a236

Please sign in to comment.