Skip to content

Commit

Permalink
-- add SIL Kit checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
VDanielEdwards committed Dec 5, 2023
1 parent 4f54928 commit a1144be
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions/docker-job/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
runs:
using: docker
image: docker/Dockerfile
args:
- scripts/run.sh

10 changes: 10 additions & 0 deletions .github/actions/docker-job/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
FROM debian:sid

ENV TZ "Europe/Berlin"
ENV DEBIAN_FRONTEND "noninteractive"
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8

RUN apt update \
&& apt -y install \
sudo \
&& true

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/docker-job/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ echo "Runner GID: ${runner_gid}"

useradd --uid "${runner_uid}" --no-user-group --home-dir "$(pwd)" --no-create-home worker

su -c scripts/run.sh - worker
sudo -E -u worker -- "$@"

6 changes: 6 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-tags: true
repository: vectorgrp/sil-kit
path: sil-kit
ref: sil-kit/v4.0.42
- uses: ./.github/actions/docker-job/

10 changes: 9 additions & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash

echo "Environment Variables:"
echo "-- Environment Variables"
env
echo "-- End of Environment Variables"

rm -rf "${SIL_KIT_SOURCE_DIR}/debian"
cp -r debian "${SIL_KIT_SOURCE_DIR}/debian"

cd "${SIL_KIT_SOURCE_DIR}"

dh_make --packagename "${SIL_KIT_PACKAGE_NAME}" --library --yes

0 comments on commit a1144be

Please sign in to comment.