Skip to content

Commit e8239b5

Browse files
committed
build: log times and update names
1 parent 26bfaff commit e8239b5

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/development.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ env:
1212
TARGET_PLATFORMS: linux/amd64,linux/arm64
1313

1414
jobs:
15-
docker:
15+
build_images:
16+
name: "Create runtime and buildroot OCI Images"
1617
services:
1718
registry:
1819
image: registry:3
@@ -194,7 +195,8 @@ jobs:
194195
${{ steps.image_env.outputs.IMAGE_HOME }}/*.txt
195196
196197
render-dockerhub-desc:
197-
needs: [docker]
198+
name: "Render metadata"
199+
needs: [build_images]
198200
runs-on: "ubuntu-latest"
199201
steps:
200202
-

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ env:
1414
TARGET_PLATFORMS: linux/amd64,linux/arm64
1515

1616
jobs:
17-
docker:
17+
build_images:
18+
name: "Create runtime and buildroot OCI Images"
1819
services:
1920
registry:
2021
image: registry:3
@@ -197,7 +198,8 @@ jobs:
197198
${{ steps.image_env.outputs.IMAGE_HOME }}/*.txt
198199
199200
update-dockerhub-desc:
200-
needs: [docker]
201+
name: "Upload and update metadata"
202+
needs: [build_images]
201203
runs-on: "ubuntu-latest"
202204

203205
permissions:
@@ -257,8 +259,9 @@ jobs:
257259
for filename in $(find dist-images -type f -name "*.tar" -print)
258260
do
259261
IMAGE_URI="$(basename -s .tar $filename | sed 's/image-//g' | base64 -d)"
260-
echo "uploading $IMAGE_URI"
261262
{
263+
START_TIME=$(date +%s)
264+
echo "uploading $IMAGE_URI"
262265
T="$(mktemp)"
263266
skopeo copy \
264267
--quiet \
@@ -271,8 +274,9 @@ jobs:
271274
IMAGE_DIGEST="$(cat $T)"
272275
rm -f $T
273276
echo "${IMAGE_URI}@${IMAGE_DIGEST}" | tee -a ./manifest.txt
274-
printf '* '"${IMAGE_URI}@${IMAGE_DIGEST}"'\n' >> "$GITHUB_STEP_SUMMARY"
275-
} & ;
277+
printf '* '"${IMAGE_URI}@${IMAGE_DIGEST}"'\n' >>"$GITHUB_STEP_SUMMARY"
278+
echo "uploaded $IMAGE_URI in $(expr $(date +%s) - $START_TIME) seconds"
279+
} &
276280
done
277281
wait
278282

0 commit comments

Comments
 (0)