Update CI workflow to use Ubuntu 22.04 container and streamline dependency installation
- Added a container specification for Ubuntu 22.04 to the CI workflow. - Included a step to install curl and ca-certificates for improved dependency management. - Simplified the installation commands by removing 'sudo' for apt-get operations.
This commit is contained in:
@@ -34,10 +34,15 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||
container:
|
||||
image: ubuntu:22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install curl and ca-certificates
|
||||
run: apt-get update -qq && apt-get install -y curl ca-certificates
|
||||
|
||||
- name: Install Bun
|
||||
run: |
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
@@ -45,7 +50,7 @@ jobs:
|
||||
echo "PATH=$HOME/.bun/bin:$PATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Install deploy tools
|
||||
run: sudo apt-get update -qq && sudo apt-get install -y rsync openssh-client sshpass
|
||||
run: apt-get update -qq && apt-get install -y rsync openssh-client sshpass
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
Reference in New Issue
Block a user