Skip to content

Commit

Permalink
ci(docker-build): add git layer
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Nov 3, 2023
1 parent 996de17 commit 475b764
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/docker/layer-02.00-git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash
#
# .github/docker/layer-02.00-git.sh
#

set -o pipefail

# this path from for the container
# shellcheck disable=SC1091
. /.github/docker/include

# shellcheck disable=SC1091
source /.github/citools/includes/wrapper-library || exit

main() {
declare -i retval=0

layer_begin "${0}" "$@"

declare -a PACKAGES
PACKAGES=(
gh
git-all
git-crypt
git-extras
gitlab-cli
gitlint
)

echo Running: apt update
time apt update || track_errors
printf "\n"

echo Running: apt install -y "${PACKAGES[@]}"
time apt install -y "${PACKAGES[@]}" || track_errors
printf "\n"

layer_end "${0}" "$@"

echo Running: return "${retval}"
return "${retval}"
}

main "${@}" |& tee "${HOME}"/layer-02.00-git.log
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN bash .github/docker/layer-00.01-base-env_setup.sh ci-generic-debian && : 202

RUN bash .github/docker/layer-00.10-base-daggerio.sh ci-generic-debian && : 20231103-000

RUN bash .github/docker/layer-02.00-git.sh ci-generic-debian && : 20231103-000

RUN bash .github/docker/layer-09.00-exercism-nodejs.sh ci-generic-debian && : 20231103-000

RUN bash .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh ci-generic-debian && : 20231103-000
Expand Down

0 comments on commit 475b764

Please sign in to comment.