-
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(build-docker): install curl and jq before creating image summary
- Loading branch information
Showing
4 changed files
with
67 additions
and
4 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,45 @@ | ||
#!/bin/sh | ||
# | ||
# .github/docker/include | ||
# | ||
# Usage: source from layer script and call the functions | ||
# | ||
# Notes: | ||
# - use sh/posix syntax only | ||
|
||
layer_begin() { | ||
printf "%s start\n\n" "layer_begin()" | ||
|
||
pwd | ||
cd "${GITHUB_WORKSPACE}" || exit | ||
pwd | ||
printf "\n" | ||
|
||
printf "%s: %s\n" "$1" "$(date +%Y%m%d-%H%M%S)" >/etc/ci-image-info | ||
cat /etc/ci-image-info | ||
printf "\n" | ||
|
||
time apt update | ||
echo apt update | ||
printf "\n" | ||
|
||
echo apt upgrade | ||
time apt upgrade | ||
printf "\n" | ||
|
||
printf "%s end\n\n" "layer_begin()" | ||
} | ||
|
||
layer_end() { | ||
printf "%s start\n\n" "layer_end()" | ||
|
||
echo apt-get clean | ||
time apt-get clean | ||
printf "\n" | ||
|
||
echo rm -rf /var/lib/apt/lists/* | ||
time rm -rf /var/lib/apt/lists/* | ||
printf "\n" | ||
|
||
printf "%s end\n\n" "layer_end()" | ||
} |
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,14 @@ | ||
#!/bin/sh | ||
|
||
. "${GITHUB_WORKSPACE}"/include | ||
|
||
layer_begin "$@" | ||
|
||
PACKAGES="bash curl jq sudo tee" | ||
|
||
echo apt install -y "${PACKAGES}" | ||
# shellcheck disable=SC2086 | ||
time apt install -y ${PACKAGES} | ||
printf "\n" | ||
|
||
layer_end "$@" |
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
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# | ||
# Dockerfile: ci-generic-debian | ||
# Dockerfile | ||
# | ||
|
||
From debian:bullseye-slim As ci-generic-base | ||
|
||
RUN pwd | ||
|
||
#RUN .github/docker/layer-00.00-base-dependencies.sh ci-generic-debian | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY .github/docker/entrypoint.sh /entrypoint.sh | ||
|
||
# app + args | ||
# Executes `entrypoint.sh` when the Docker container starts up | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
# extra args | ||
# CMD [] | ||
# Extra args | ||
CMD [] |