From 0b6c68a5a40221d34e954eb450f56f0d4684505b Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Sun, 15 Oct 2023 17:23:30 -0300 Subject: [PATCH 1/3] feat: Gitea CI/CD pipline --- .gitea/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/main.yml diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 0000000..c88393d --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,22 @@ +name: 'deploy' +on: [push] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Cloning repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Get Repo Name + id: repo_name + run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" + + - name: Push to dokku + uses: dokku/github-action@master + with: + branch: 'main' + git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file From c6b419b7adc6232aefade18bb98c8c94eada0ff4 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Mon, 16 Oct 2023 06:27:41 -0300 Subject: [PATCH 2/3] feat: fetch file --- fetch.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 fetch.conf diff --git a/fetch.conf b/fetch.conf new file mode 100644 index 0000000..485b707 --- /dev/null +++ b/fetch.conf @@ -0,0 +1 @@ +Repo=https://github.com/authorizerdev/authorizer \ No newline at end of file From dac150abeece29661a93c898b783cbe46c59e8d5 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Mon, 16 Oct 2023 11:29:59 -0300 Subject: [PATCH 3/3] feat: Fetch conf well formated --- README.md | 3 +++ fetch.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 587ca5d..7432f37 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +This repo is with CI/CD Gitea needs and fetch.conf for fetch-daemon service + +

Logo diff --git a/fetch.conf b/fetch.conf index 485b707..71efcca 100644 --- a/fetch.conf +++ b/fetch.conf @@ -1 +1 @@ -Repo=https://github.com/authorizerdev/authorizer \ No newline at end of file +https://github.com/authorizerdev/authorizer \ No newline at end of file