update
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
This commit is contained in:
@@ -187,30 +187,22 @@ jobs:
|
||||
infofile="$version/build-info.json"
|
||||
|
||||
digest=$(docker inspect --format='{{index .RepoDigests 0}}' "gitea.fithwum.tech/fithwum/debian-base:$version" || echo "unknown")
|
||||
base_os=$(lsb_release -d 2>/dev/null | cut -f2 || echo "unknown")
|
||||
kernel=$(uname -r)
|
||||
arch=$(uname -m)
|
||||
|
||||
jq -n --arg version "$version" \
|
||||
--arg commit "$(git rev-parse HEAD)" \
|
||||
--arg build_time "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
|
||||
--arg image_tag "gitea.fithwum.tech/fithwum/debian-base:$version" \
|
||||
--arg digest "$digest" \
|
||||
--arg base_os "$base_os" \
|
||||
--arg kernel "$kernel" \
|
||||
--arg arch "$arch" \
|
||||
'{
|
||||
version: $version,
|
||||
commit: $commit,
|
||||
build_time: $build_time,
|
||||
image_tag: $image_tag,
|
||||
digest: $digest,
|
||||
base_os: $base_os,
|
||||
kernel: $kernel,
|
||||
arch: $arch
|
||||
digest: $digest
|
||||
}' > "$infofile"
|
||||
done
|
||||
|
||||
|
||||
- name: Commit and push build-info if changed
|
||||
run: |
|
||||
cd upload-repo
|
||||
|
||||
Reference in New Issue
Block a user