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:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||||
|
container:
|
||||||
|
image: ubuntu:22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Install Bun
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://bun.sh/install | bash
|
curl -fsSL https://bun.sh/install | bash
|
||||||
@@ -45,7 +50,7 @@ jobs:
|
|||||||
echo "PATH=$HOME/.bun/bin:$PATH" >> $GITHUB_ENV
|
echo "PATH=$HOME/.bun/bin:$PATH" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install deploy tools
|
- 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
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|||||||
Reference in New Issue
Block a user