Skip to content

Commit

Permalink
flatten the docker image using --squash flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Nov 9, 2019
1 parent a056bb8 commit 1892679
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Enable Docker experimental features
run: |
jq '.experimental=true' /etc/docker/daemon.json > daemon.json
sudo mv daemon.json /etc/docker/daemon.json
sudo systemctl restart docker
docker version -f '{{.Server.Experimental}}'
- name: Build
run: |
docker build -t texlive-$SCHEME --build-arg scheme=$SCHEME .
docker build --squash -t texlive-$SCHEME --build-arg scheme=$SCHEME .
- name: Test
run: |
docker run --rm texlive-$SCHEME pdflatex --version
Expand Down

0 comments on commit 1892679

Please sign in to comment.