Skip to content

Commit ddcd47d

Browse files
committed
ci: Improve paths mounted to container
Signed-off-by: Ryan Northey <[email protected]>
1 parent 8dc0c56 commit ddcd47d

File tree

3 files changed

+9
-41
lines changed

3 files changed

+9
-41
lines changed

.github/workflows/_publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
steps-pre: |
7575
- run: |
7676
mkdir distribution/custom
77-
cp -a %{{ runner.temp }}/envoy/x64 %{{ runner.temp }}/envoy/arm64 distribution/custom
77+
cp -a %{{ runner.temp }}/container/envoy/x64 %{{ runner.temp }}/container/envoy/arm64 distribution/custom
7878
shell: bash
7979
8080
container:

.github/workflows/_publish_verify.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
for image in "${IMAGES[@]}"; do
7676
src_name="$(echo ${image} | cut -d: -f1)"
7777
dest_name="$(echo ${image} | cut -d: -f2)"
78-
src="oci-archive:%{{ runner.temp }}/build_images/${src_name}.amd64.tar"
78+
src="oci-archive:%{{ runner.temp }}/container/build_images/${src_name}.amd64.tar"
7979
dest="docker-daemon:envoyproxy/envoy:${dest_name}"
8080
echo "Copy image: ${src} ${dest}"
8181
skopeo copy -q "${src}" "${dest}"
@@ -121,7 +121,7 @@ jobs:
121121
for image in "${IMAGES[@]}"; do
122122
src_name="$(echo ${image} | cut -d: -f1)"
123123
dest_name="$(echo ${image} | cut -d: -f2)"
124-
src="oci-archive:%{{ runner.temp }}/build_images/${src_name}.amd64.tar"
124+
src="oci-archive:%{{ runner.temp }}/container/build_images/${src_name}.amd64.tar"
125125
dest="docker-daemon:envoyproxy/envoy:${dest_name}"
126126
echo "Copy image: ${src} ${dest}"
127127
skopeo copy -q "${src}" "${dest}"
@@ -164,14 +164,14 @@ jobs:
164164
shell: bash
165165
- run: |
166166
TEMP_DIR=$(mktemp -d)
167-
zstd --stdout -d %{{ runner.temp }}/release.signed/release.signed.tar.zst | tar --warning=no-timestamp -xf - -C "${TEMP_DIR}"
167+
zstd --stdout -d %{{ runner.temp }}/container/release.signed/release.signed.tar.zst | tar --warning=no-timestamp -xf - -C "${TEMP_DIR}"
168168
mkdir ${TEMP_DIR}/debs
169169
tar xf ${TEMP_DIR}/bin/debs.tar.gz -C ${TEMP_DIR}/debs
170170
mkdir -p ${TEMP_DIR}/distribution/deb
171171
cp -a ${TEMP_DIR}/debs/*_${DEB_ARCH}* ${TEMP_DIR}/distribution/deb
172172
cp -a ${TEMP_DIR}/signing.key ${TEMP_DIR}/distribution
173-
mkdir -p %{{ runner.temp }}/distribution/${ARCH}
174-
tar czf %{{ runner.temp }}/distribution/${ARCH}/packages.${ARCH}.tar.gz -C ${TEMP_DIR}/distribution .
173+
mkdir -p %{{ runner.temp }}/container/distribution/${ARCH}
174+
tar czf %{{ runner.temp }}/container/distribution/${ARCH}/packages.${ARCH}.tar.gz -C ${TEMP_DIR}/distribution .
175175
shell: bash
176176
177177
strategy:

.github/workflows/_run.yml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,6 @@ on:
115115
- run: |
116116
# Pre build report
117117
df -h > "${TMP_REPORT}/df-pre"
118-
if [[ ! -e "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha256/" ]]; then
119-
exit 0
120-
fi
121-
find "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha256/" -maxdepth 1 -type d \
122-
| rev \
123-
| cut -d/ -f1 \
124-
| rev \
125-
> "${TMP_REPORT}/shas-pre"
126-
if [[ ! -e "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha384/" ]]; then
127-
exit 0
128-
fi
129-
find "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha384/" -maxdepth 1 -type d \
130-
| rev \
131-
| cut -d/ -f1 \
132-
| rev \
133-
>> "${TMP_REPORT}/shas-pre"
134118
shell: bash
135119
report-post:
136120
type: string
@@ -139,22 +123,6 @@ on:
139123
# Post build report
140124
df -h > "${TMP_REPORT}/df-post"
141125
(du -ch "%{{ inputs.temp-dir || runner.temp }}" | grep -E "[0-9]{2,}M|[0-9]G" || :) > "${TMP_REPORT}/du-post"
142-
if [[ ! -e "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha256/" ]]; then
143-
exit 0
144-
fi
145-
find "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha256/" -maxdepth 1 -type d \
146-
| rev \
147-
| cut -d/ -f1 \
148-
| rev \
149-
> "${TMP_REPORT}/shas-post"
150-
if [[ ! -e "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha384/" ]]; then
151-
exit 0
152-
fi
153-
find "${ENVOY_DOCKER_BUILD_DIR}/repository_cache/content_addressable/sha384/" -maxdepth 1 -type d \
154-
| rev \
155-
| cut -d/ -f1 \
156-
| rev \
157-
>> "${TMP_REPORT}/shas-post"
158126
shell: bash
159127
request:
160128
type: string
@@ -295,7 +263,7 @@ jobs:
295263
with:
296264
gcs-bucket: ${{ inputs.gcs-cache-bucket }}
297265
key: ${{ fromJSON(inputs.request).config.ci.cache.bazel }}-${{ inputs.arch || 'x64' }}
298-
path: ${{ runner.temp }}/bazel_root
266+
path: ${{ runner.temp }}/container/bazel_root
299267

300268
# HACK/WORKAROUND for cache scope issue (https://github.com/envoyproxy/envoy/issues/37603)
301269
- if: ${{ inputs.cache-build-image }}
@@ -354,7 +322,7 @@ jobs:
354322
with:
355323
key: ${{ secrets.gpg-key }}
356324
passphrase: ${{ secrets.gpg-key-password }}
357-
passphrase-path: "${{ runner.temp }}/gpg-passphrase"
325+
passphrase-path: "${{ runner.temp }}/container/gpg-passphrase"
358326
configured-passphrase-path: /build/gpg-passphrase
359327

360328
- run: |
@@ -416,7 +384,7 @@ jobs:
416384
GITHUB_TOKEN: ${{ inputs.trusted && steps.appauth.outputs.token || github.token }}
417385
DOCKERHUB_USERNAME: ${{ inputs.dockerhub-username }}
418386
DOCKERHUB_PASSWORD: ${{ secrets.dockerhub-password }}
419-
ENVOY_DOCKER_BUILD_DIR: ${{ runner.temp }}
387+
ENVOY_DOCKER_BUILD_DIR: ${{ runner.temp }}/container
420388
ENVOY_RBE: ${{ inputs.rbe == true && 1 || '' }}
421389
RBE_KEY: ${{ secrets.rbe-key }}
422390
BAZEL_BUILD_EXTRA_OPTIONS: >-

0 commit comments

Comments
 (0)