-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docker-build): add image info to job summary
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
# | ||
# .github/docker/layer-99.00-summary.sh | ||
# | ||
|
||
set -o pipefail | ||
|
||
# this path from for the container | ||
# shellcheck disable=SC1091 | ||
. /.github/docker/include | ||
|
||
main() { | ||
layer_begin "$@" | ||
|
||
printf "OS Info:\n" | ||
tail -n 1000 /etc/os-release /etc/debian_version | paste /dev/null - | ||
printf "\n" | ||
|
||
printf "Collecting apt installed packages:\n" | ||
echo Running: apt list \> /root/apt-pkgs-end.txt | ||
apt list >/root/apt-pkgs-end.txt | ||
printf "\n" | ||
|
||
printf "Show apt package diff:\n" | ||
echo Running: diff -uNr /root/apt-pkgs-{start,end}.txt | ||
diff -uNr /root/apt-pkgs-{start,end}.txt | ||
printf "\n" | ||
|
||
printf "Show cargo packages:\n" | ||
echo Running cargo install --list | ||
cargo install --list | paste /dev/null - | ||
printf "\n" | ||
|
||
printf "Show golang packages:\n" | ||
echo Running ls "$(go env GOPATH)/bin" | ||
# shellcheck disable=SC2012 | ||
ls "$(go env GOPATH)/bin/" | paste /dev/null - | ||
printf "\n" | ||
|
||
printf "Show npm packages:\n" | ||
echo Running npm list --global | ||
npm list --global | paste /dev/null - | ||
printf "\n" | ||
|
||
layer_end "$@" | ||
} | ||
|
||
main "${@}" |& tee /root/layer-15.00-exercism-rust.log | ||
|
||
if [[ -n ${GITHUB_STEP_SUMMARY} ]]; then | ||
printf "\`\`\`text\n" | ||
cat /root/layer-15.00-exercism-rust.log | ||
printf "\`\`\`\n" | ||
fi >>"${GITHUB_STEP_SUMMARY}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters