mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 15:35:45 +00:00
bump actions version & add no-install-recommends
This commit is contained in:
parent
0ede3fbfbf
commit
b5f2aad04c
14
.github/workflows/docker-images.yml
vendored
14
.github/workflows/docker-images.yml
vendored
@ -54,18 +54,18 @@ jobs:
|
||||
echo "docker_file=${DF}" >> $GITHUB_ENV
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
with:
|
||||
platforms: arm64
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
-
|
||||
name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'push'
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
@ -74,7 +74,7 @@ jobs:
|
||||
${{ runner.os }}-buildx-${{ matrix.image }}-
|
||||
-
|
||||
name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
@ -90,14 +90,14 @@ jobs:
|
||||
exit -1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
if: github.event_name == 'push'
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ${{ env.docker_file }}/Dockerfile
|
||||
|
@ -2,10 +2,10 @@ FROM debian:buster
|
||||
MAINTAINER Justin Wong <yuzhi.wang@tuna.tsinghua.edu.cn>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip libnss-unknown
|
||||
apt-get install --no-install-recommends -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip libnss-unknown xz-utils patch unzip
|
||||
|
||||
RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \
|
||||
apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libffi-dev ;\
|
||||
apt-get install --no-install-recommends -y libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libffi-dev ;\
|
||||
fi
|
||||
|
||||
RUN pip3 install --upgrade pip
|
||||
|
@ -2,7 +2,7 @@ FROM debian:bookworm
|
||||
MAINTAINER Justin Wong <yuzhi.wang@tuna.tsinghua.edu.cn>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git rsync stunnel4 socat && \
|
||||
apt-get install -y --no-install-recommends git rsync stunnel4 socat ca-certificates opensysusers && \
|
||||
apt-get clean all
|
||||
|
||||
RUN git clone https://ftp-master.debian.org/git/archvsync.git/ /ftpsync/
|
||||
|
Loading…
x
Reference in New Issue
Block a user