From 5521da935682d63fb33a2bc0d48c37de77c2d980 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Fri, 21 Jul 2023 10:44:19 +0200 Subject: [PATCH] [CI] add my gitea instatance --- .github/workflows/containers.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 42a605c..3d410a2 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -9,6 +9,7 @@ env: run-unit-tests: ${{ secrets.RUN_UNIT_TESTS != null }} docker-hub-credentials: ${{ secrets.DOCKER_HUB_USERNAME != null && secrets.DOCKER_HUB_TOKEN != null }} ghcr-credentials: ${{ secrets.GHCR_USERNAME != null && secrets.GHCR_TOKEN != null }} + gitea-credentials: ${{ secrets.GITEA_USERNAME != null && secrets.GITEA_TOKEN != null }} docker-hub-namespace: ${{ secrets.DOCKER_HUB_NAMESPACE || github.repository_owner }} docker-hub-namespace-upstream: ${{ secrets.DOCKER_HUB_NAMESPACE_UPSTREAM || 'zmkfirmware' }} ghcr-namespace: ${{ github.repository_owner }} @@ -106,6 +107,14 @@ jobs: registry: ghcr.io username: ${{ secrets.GHCR_USERNAME }} password: ${{ secrets.GHCR_TOKEN }} + - name: Login to Gitea + id: docker-hub-login + if: ${{ env.gitea-credentials == 'true' }} + uses: docker/login-action@v2 + with: + registry: git.sporq.de + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} - name: Define paths id: paths env: @@ -212,6 +221,14 @@ jobs: registry: ghcr.io username: ${{ secrets.GHCR_USERNAME }} password: ${{ secrets.GHCR_TOKEN }} + - name: Login to Gitea + id: docker-hub-login + if: ${{ env.gitea-credentials == 'true' }} + uses: docker/login-action@v2 + with: + registry: git.sporq.de + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} - name: Define repositories id: repositories shell: bash @@ -570,6 +587,13 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} + - name: Login to Gitea + id: docker-hub-login + uses: docker/login-action@v2 + with: + registry: git.sporq.de + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} - name: Release (pull candidate, tag, push) env: DHNS: ${{ env.docker-hub-namespace }} @@ -648,6 +672,13 @@ jobs: with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} + - name: Login to Gitea + id: docker-hub-login + uses: docker/login-action@v2 + with: + registry: git.sporq.de + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} - name: Release (pull candidate, tag, push) env: DHNS: ${{ env.docker-hub-namespace }}