mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Add rsync docker image
This commit is contained in:
5
.github/workflows/docker-build.yml
vendored
5
.github/workflows/docker-build.yml
vendored
@@ -9,6 +9,9 @@ on:
|
||||
username:
|
||||
required: true
|
||||
type: string
|
||||
folder:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
GH_TOKEN:
|
||||
required: true
|
||||
@@ -44,7 +47,7 @@ jobs:
|
||||
- name: push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
context: ${{ inputs.folder }}
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
8
.github/workflows/sb-server.yml
vendored
8
.github/workflows/sb-server.yml
vendored
@@ -11,5 +11,13 @@ jobs:
|
||||
with:
|
||||
name: "sb-server"
|
||||
username: "ajayyy"
|
||||
folder: "."
|
||||
secrets:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: ./.github/workflows/docker-build.yml
|
||||
with:
|
||||
name: "rsync-host"
|
||||
username: "ajayyy"
|
||||
folder: "./rsync"
|
||||
secrets:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
5
rsync/Dockerfile
Normal file
5
rsync/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM ghcr.io/ajayyy/sb-server:latest
|
||||
EXPOSE 873/tcp
|
||||
RUN apk add rsync>3.2.4-r0
|
||||
|
||||
CMD rsync --no-detach --daemon
|
||||
Reference in New Issue
Block a user