more build info
All checks were successful
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Successful in 6m38s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Successful in 59s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Successful in 56s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
All checks were successful
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Successful in 6m38s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Successful in 59s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Successful in 56s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
This commit is contained in:
@@ -186,23 +186,27 @@ jobs:
|
|||||||
mkdir -p "$version"
|
mkdir -p "$version"
|
||||||
infofile="$version/build-info.json"
|
infofile="$version/build-info.json"
|
||||||
|
|
||||||
digest=$(docker inspect --format='{{index .RepoDigests 0}}' "gitea.fithwum.tech/fithwum/debian-base:$version" || echo "unknown")
|
image="gitea.fithwum.tech/fithwum/debian-base:$version"
|
||||||
|
|
||||||
|
digest=$(docker inspect --format='{{index .RepoDigests 0}}' "$image" || echo "unknown")
|
||||||
|
size=$(docker image inspect "$image" --format='{{.Size}}' || echo "0")
|
||||||
|
|
||||||
jq -n --arg version "$version" \
|
jq -n --arg version "$version" \
|
||||||
--arg commit "$(git rev-parse HEAD)" \
|
--arg commit "$(git rev-parse HEAD)" \
|
||||||
--arg build_time "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
|
--arg build_time "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
|
||||||
--arg image_tag "gitea.fithwum.tech/fithwum/debian-base:$version" \
|
--arg image_tag "$image" \
|
||||||
--arg digest "$digest" \
|
--arg digest "$digest" \
|
||||||
|
--argjson size "$size" \
|
||||||
'{
|
'{
|
||||||
version: $version,
|
version: $version,
|
||||||
commit: $commit,
|
commit: $commit,
|
||||||
build_time: $build_time,
|
build_time: $build_time,
|
||||||
image_tag: $image_tag,
|
image_tag: $image_tag,
|
||||||
digest: $digest
|
digest: $digest,
|
||||||
|
image_size: $size
|
||||||
}' > "$infofile"
|
}' > "$infofile"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
- name: Commit and push build-info if changed
|
- name: Commit and push build-info if changed
|
||||||
run: |
|
run: |
|
||||||
cd upload-repo
|
cd upload-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user