push image only to dockerhub
Build and Push Docker Container / build-and-push (push) Successful in 9m10s
Build and Push Docker Container / build-and-push (push) Successful in 9m10s
This commit is contained in:
@@ -20,22 +20,12 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
# --- Logins ---
|
# --- 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
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
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) ----------------
|
# ---------------- BRANCH BUILD (main) ----------------
|
||||||
# On Branch: Gitea and Docker Hub :latest
|
# On Branch: Gitea and Docker Hub :latest
|
||||||
- name: Build & push (branch -> only :latest everywhere)
|
- name: Build & push (branch -> only :latest everywhere)
|
||||||
@@ -46,5 +36,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.DOCKER_REGISTRY_URL }}/${{ env.REPO_OWNER_LC }}/borgbackup-ssh:latest
|
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/borgbackup-ssh:latest
|
${{ secrets.DOCKERHUB_USERNAME }}/borgbackup-ssh:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user