diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/deploy-publish.yml similarity index 81% rename from .gitea/workflows/publish.yml rename to .gitea/workflows/deploy-publish.yml index 463f51d..4e6a6aa 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/deploy-publish.yml @@ -1,4 +1,4 @@ -name: Publish Image +name: Deploy & Publish Image on: push: @@ -23,6 +23,13 @@ jobs: with: fetch-depth: 0 + # Deploy to Dokku + - name: Deploy to Dokku + uses: dokku/github-action@master + with: + git_remote_url: "ssh://dokku@10.10.70.73:22/docs" + ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} + # Set up Docker Buildx - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index 5767e1b..0000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy - -on: - push: - branches: [ "master" ] - paths-ignore: - - README.md - - LICENSE - -jobs: - deploy: - strategy: - matrix: - arch: [ "ubuntu-latest" ] - git-version: [ "2.44.0" ] - runs-on: ${{ matrix.arch }} - - # Steps to run - steps: - # Checkout the repo - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # Deploy to Dokku - - name: Deploy to Dokku - uses: dokku/github-action@master - with: - git_remote_url: "ssh://dokku@10.10.70.73:22/docs" - ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} \ No newline at end of file