feat: Dockerfile
All checks were successful
/ deploy (push) Successful in 20s

This commit is contained in:
ange 2025-04-20 13:12:29 +00:00
commit c3123be769
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,20 @@
on: push
jobs:
deploy:
runs-on: debian
steps:
- uses: actions/checkout@v1
- name: setup env
run: |
. ./.env || true
REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})"
cat <<EOF >> .env
REGISTRY="$REGISTRY"
IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}"
EOF
cat .env
- uses: actions/kaniko@v1
with:
password: "${{ secrets.PKGRW }}"

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM docker.io/debian:12-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
borgbackup \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["borg"]