From ff197d2985419207291b79a267ecb0c23652797c Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 6 May 2022 14:34:11 -0400 Subject: [PATCH] Add rsync docker image --- .github/workflows/docker-build.yml | 5 ++++- .github/workflows/sb-server.yml | 8 ++++++++ rsync/Dockerfile | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 rsync/Dockerfile diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a76c01e..c5ef476 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/sb-server.yml b/.github/workflows/sb-server.yml index 9f674bb..12b89e7 100644 --- a/.github/workflows/sb-server.yml +++ b/.github/workflows/sb-server.yml @@ -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 }} \ No newline at end of file diff --git a/rsync/Dockerfile b/rsync/Dockerfile new file mode 100644 index 0000000..41a2e34 --- /dev/null +++ b/rsync/Dockerfile @@ -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 \ No newline at end of file