From 470fa896b4b28dbc6f9a8c9183b1ccadc48d19cf Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 17 May 2025 14:47:05 -0300 Subject: [PATCH] Consolidate deployment jobs into one - Combines DockerHub and Gitea deployment into a single job. - Removes the separate `deploy_to_dockerhub` and `deploy_to_gitea` jobs. - Simplifies the deployment process. - Adds DockerHub tagging to the combined deployment job. --- .gitea/workflows/ci.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d70d51e..afdb21b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: uv run python -m build uv run python -m twine upload dist/* - deploy_to_dockerhub: + deploy_to_registries: runs-on: ubuntu-latest needs: test if: github.ref == 'refs/heads/master' @@ -77,30 +77,15 @@ jobs: - name: Log in to DockerHub run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push to DockerHub - run: | - docker buildx build --push \ - --tag rogsme/subscleaner:latest \ - . - - deploy_to_gitea: - runs-on: ubuntu-latest - needs: test - if: github.ref == 'refs/heads/master' - steps: - - uses: actions/checkout@v3 - - name: Log in to Gitea Registry run: echo "${{ vars.REPOSITORY_TOKEN }}" | docker login git.rogs.me -u rogs --password-stdin - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Build and push to Gitea + - name: Build and push to both DockerHub and Gitea run: | docker buildx build --push \ + --tag rogsme/subscleaner:latest \ --tag git.rogs.me/rogs/subscleaner:latest \ .