From 0068fcff18ea92f4d366093bb446e4de87ae818b Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 6 Dec 2021 15:02:01 -0600 Subject: [PATCH] docs: add Docker inside GitHub Actions [skip ci] --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 9a81e354..0441b48f 100644 --- a/README.md +++ b/README.md @@ -184,3 +184,25 @@ After build, run the following to start an interactive shell in your container ```ps1 docker run -it setup_cpp ``` + +# Inside Docker inside GitHub Actions + +You can use the docker file discussed in the previous section inside GitHub Actions like the following: + +```yaml +jobs: + Docker: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Build + id: docker_build + run: | + docker build -f ./building/docker/debian.dockerfile -t setup_cpp . + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true +``` \ No newline at end of file