Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions .github/workflows/release-build-sign-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
name: Build Linux
needs:
- setup
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

env:
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:
cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
cp $root/out/cf-cli_linux_i686 cf/usr/bin/cf${VERSION_MAJOR}
ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb
fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb
mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_i686.deb $root/packaged-deb
rm -rf cf
popd
Expand All @@ -336,7 +336,7 @@ jobs:
cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
cp $root/out/cf-cli_linux_x86-64 cf/usr/bin/cf${VERSION_MAJOR}
ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb
fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb
mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_x86-64.deb $root/packaged-deb
popd
)
Expand All @@ -360,7 +360,7 @@ jobs:
cp ../completion/cf${VERSION_MAJOR} cf/usr/share/bash-completion/completions/cf${VERSION_MAJOR}
cp $root/out/cf-cli_linux_arm64 cf/usr/bin/cf${VERSION_MAJOR}
ln -frs cf/usr/bin/cf${VERSION_MAJOR} cf/usr/bin/cf
fakeroot dpkg --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb
fakeroot dpkg-deb -Zxz --build cf cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb
mv cf${VERSION_MAJOR}-cli-installer_${VERSION_BUILD}_arm64.deb $root/packaged-deb
popd
)
Expand Down Expand Up @@ -910,20 +910,36 @@ jobs:
needs:
- setup
- build-linux
runs-on: ubuntu-20.04
container:
image: ubuntu:20.04
strategy:
matrix:
image:
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- ubuntu
runs-on: ubuntu-latest
steps:

- name: Download Signed Linux Packages
uses: actions/download-artifact@v4
with:
name: cf-cli-linux-deb-packages

- name: Display structure of downloaded files
- name: Display structure and verify
env:
IMAGE: ${{ matrix.image }}
run: |
ls -R
docker run \
--interactive \
--rm \
-v .:/workspace \
${IMAGE} <<EOC
printf "${IMAGE} -> "
grep PRETTY_NAME /etc/os-release | cut -d= -f2-
cd workspace
ls *.deb | xargs -n1 dpkg --info
EOC

test-macos:
name: Test macOS Artifacts
Expand Down Expand Up @@ -1074,4 +1090,4 @@ jobs:

git push
fi
popd
popd
30 changes: 21 additions & 9 deletions .github/workflows/release-update-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:

update-deb:
name: Update Debian Repository
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: setup
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
Expand Down Expand Up @@ -307,8 +307,13 @@ jobs:
name: Test Debian Repository
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
image:
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- ubuntu
runs-on: ubuntu-latest
needs:
- setup
- update-deb
Expand All @@ -319,17 +324,23 @@ jobs:
steps:

- name: Install CF CLI via apt
env:
IMAGE: ${{ matrix.image }}
run: |
docker run \
--interactive \
--rm \
${IMAGE} <<EOC
set -o pipefail -e

sudo apt update
sudo apt install -y wget gnupg
apt update
apt install -y wget gnupg

wget -q -O - ${CLAW_URL}/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb ${CLAW_URL}/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
wget -q -O - ${CLAW_URL}/debian/cli.cloudfoundry.org.key | apt-key add -
echo "deb ${CLAW_URL}/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list

sudo apt update
sudo apt install -y cf${VERSION_MAJOR}-cli
apt update
apt install -y cf${VERSION_MAJOR}-cli

which cf

Expand All @@ -339,6 +350,7 @@ jobs:
cf${VERSION_MAJOR} -v

cf -v | grep "${VERSION_BUILD}"
EOC

update-rpm:
name: Update RPM Repository
Expand Down
Loading