Skip to content

Commit

Permalink
ci: Clean up apt cache and junk (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jul 28, 2020
1 parent 4cf5105 commit 5d053d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
- run: make build
- run: docker images
- run: make ci
- run: make all
- run: docker-compose push
Expand Down
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN apt-get update && \
wget \
ssh \
vim && \
apt-get autoclean && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
npm i -g npm

Expand All @@ -33,8 +36,10 @@ ENV GITHUB_REPOSITORY_OWNER="peaceiris"
ENV GITHUB_ACTIONS="true"
ENV CI="true"

RUN git config --global init.defaultBranch main

WORKDIR /repo
RUN rm -rf /git && \
git --version && \
git config --global init.defaultBranch main && \
git config --global init.defaultBranch

CMD [ "bash" ]

0 comments on commit 5d053d3

Please sign in to comment.