push image only to dockerhub
Build and Push Docker Container / build-and-push (push) Successful in 9m10s

This commit is contained in:
2025-10-21 11:39:04 +02:00
parent 038a5be392
commit de1dbb24bc
-11
View File
@@ -20,22 +20,12 @@ jobs:
uses: docker/setup-buildx-action@v3
# --- Logins ---
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.ACTION_ACCESS_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Repo owner to lowercase (for Gitea namespace)
run: echo "REPO_OWNER_LC=$(echo '${{ gitea.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
# ---------------- BRANCH BUILD (main) ----------------
# On Branch: Gitea and Docker Hub :latest
- name: Build & push (branch -> only :latest everywhere)
@@ -46,5 +36,4 @@ jobs:
push: true
platforms: linux/amd64
tags: |
${{ vars.DOCKER_REGISTRY_URL }}/${{ env.REPO_OWNER_LC }}/borgbackup-ssh:latest
${{ secrets.DOCKERHUB_USERNAME }}/borgbackup-ssh:latest