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"
|
infofile="$version/build-info.json"
|
||||||
|
|
||||||
digest=$(docker inspect --format='{{index .RepoDigests 0}}' "gitea.fithwum.tech/fithwum/debian-base:$version" || echo "unknown")
|
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" \
|
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 "gitea.fithwum.tech/fithwum/debian-base:$version" \
|
||||||
--arg digest "$digest" \
|
--arg digest "$digest" \
|
||||||
--arg base_os "$base_os" \
|
|
||||||
--arg kernel "$kernel" \
|
|
||||||
--arg arch "$arch" \
|
|
||||||
'{
|
'{
|
||||||
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
|
||||||
base_os: $base_os,
|
|
||||||
kernel: $kernel,
|
|
||||||
arch: $arch
|
|
||||||
}' > "$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