mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
ci: Clean up apt cache and junk (#425)
This commit is contained in:
parent
4cf5105929
commit
5d053d30d0
1
.github/workflows/dev-image.yml
vendored
1
.github/workflows/dev-image.yml
vendored
@ -39,6 +39,7 @@ jobs:
|
|||||||
- run: docker-compose pull --quiet
|
- run: docker-compose pull --quiet
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
- run: make build
|
- run: make build
|
||||||
|
- run: docker images
|
||||||
- run: make ci
|
- run: make ci
|
||||||
- run: make all
|
- run: make all
|
||||||
- run: docker-compose push
|
- run: docker-compose push
|
||||||
|
@ -11,6 +11,9 @@ RUN apt-get update && \
|
|||||||
wget \
|
wget \
|
||||||
ssh \
|
ssh \
|
||||||
vim && \
|
vim && \
|
||||||
|
apt-get autoclean && \
|
||||||
|
apt-get clean && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
npm i -g npm
|
npm i -g npm
|
||||||
|
|
||||||
@ -33,8 +36,10 @@ ENV GITHUB_REPOSITORY_OWNER="peaceiris"
|
|||||||
ENV GITHUB_ACTIONS="true"
|
ENV GITHUB_ACTIONS="true"
|
||||||
ENV CI="true"
|
ENV CI="true"
|
||||||
|
|
||||||
RUN git config --global init.defaultBranch main
|
|
||||||
|
|
||||||
WORKDIR /repo
|
WORKDIR /repo
|
||||||
|
RUN rm -rf /git && \
|
||||||
|
git --version && \
|
||||||
|
git config --global init.defaultBranch main && \
|
||||||
|
git config --global init.defaultBranch
|
||||||
|
|
||||||
CMD [ "bash" ]
|
CMD [ "bash" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user