From 4e0f8957dfba503c608f0daf18b450c7e73ac180 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 9 Oct 2024 22:50:46 -0400 Subject: [PATCH] okay this is now 1 workflow Took 2 minutes --- .../{publish.yml => deploy-publish.yml} | 9 +++++- .gitea/workflows/deploy.yml | 31 ------------------- 2 files changed, 8 insertions(+), 32 deletions(-) rename .gitea/workflows/{publish.yml => deploy-publish.yml} (81%) delete mode 100644 .gitea/workflows/deploy.yml 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