Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker cache PR builds #1386

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,29 @@ on:
branches:
- main

permissions:
packages: write

jobs:
build-autoscaler:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x-spot
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker Layers
uses: WarpBuilds/cache@v1
with:
path: autoscaler-cache
key: autoscaler-cache-${{ github.head_ref }}
- name: Build Autoscaler Image
uses: docker/build-push-action@v6
with:
push: false
tags: autoscaler:pr-${{ github.event.number }}
tags: ghcr.io/odigos-io/odigos/autoscaler:pr-${{ github.event.number }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why autoscaler?

build-args: SERVICE_NAME=autoscaler
cache-to: type=local,mode=max,dest=autoscaler-cache
cache-from: type=local,src=autoscaler-cache
build-scheduler:
runs-on: ubuntu-latest
steps:
Expand Down
Loading