Skip to content

Commit 29e96ab

Browse files
Apply suggestions from code review
Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
1 parent 2a8948c commit 29e96ab

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/yscope-velox-builder-img.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ jobs:
8989
echo "Image does not exist, will build"
9090
fi
9191
92+
- name: Extract GitHub metadata
93+
if: steps.check-image.outputs.exists == 'false'
94+
uses: docker/metadata-action@v5
95+
with:
96+
images: ${{steps.image-tag.outputs.tag}}
97+
9298
- name: Set up Docker Buildx
9399
if: steps.check-image.outputs.exists == 'false'
94100
uses: docker/setup-buildx-action@v3

.github/zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rules:
1515
use-trusted-publishing:
1616
ignore:
1717
- build_pyvelox.yml
18+
1819
# linux-build-base.yml uses ghcr.io/y-scope/docker-github-actions-runner:ubuntu-jammy
1920
# which is our own self-maintained image - we intentionally use the floating tag to
2021
# receive security and maintenance updates automatically

scripts/docker/yscope-velox-builder.dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ ENV CCACHE_MAXSIZE=5G
5757
# by CI builds (which run in /__w/velox/velox/)
5858
ENV CCACHE_NOHASHDIR=true
5959

60-
# Copy velox source for warmup build to populate ccache
61-
COPY . /tmp/velox-src/
62-
WORKDIR /tmp/velox-src
63-
6460
# Build velox once to warm up ccache
6561
# NOTE:
6662
# - We set `CCACHE_BASEDIR` so cache keys use relative paths.
6763
# - We clear the stats after warmup so that CI builds only show their own cache hits.
64+
COPY . /tmp/velox-src/
65+
WORKDIR /tmp/velox-src
6866
RUN CCACHE_BASEDIR=/tmp/velox-src make release \
6967
&& echo "CCache statistics after warmup build:" \
7068
&& ccache --verbose --show-stats \

0 commit comments

Comments
 (0)