Skip to content

Commit

Permalink
build(docker): Prebuild dependencies image
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 6, 2024
1 parent dafc311 commit 9b093df
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ on:
jobs:
build-image:
name: Build ${{ inputs.name }} image
runs-on: ["self-hosted", "linux", "arm64", "ubuntu-platform"]
# runs-on: ["self-hosted", "linux", "arm64", "ubuntu-platform"]
runs-on: ubuntu-24.04
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ jobs:
- name: Precompile librocksdb
uses: ./.github/actions/librocksdb

docker-deps:
name: Prebuild and cache some Docker dependencies
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Prebuild Docker dependencies
uses: ./.github/workflows/tests-build-image.yml
with:
name: Dependencies
image_name: deps
target: deps

build-js:
name: Build JS packages
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
Expand All @@ -61,6 +76,8 @@ jobs:

build-images:
name: Build Docker images
needs:
- docker-deps
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
secrets: inherit
strategy:
Expand Down

0 comments on commit 9b093df

Please sign in to comment.