From 4f0035629d55aa18ab37b4afeaa44dc2041771d9 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Sat, 27 Apr 2024 20:03:55 +0200 Subject: [PATCH] fixed vars --- .forgejo/workflows/docker.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/docker.yaml b/.forgejo/workflows/docker.yaml index dacf266..8f2de41 100644 --- a/.forgejo/workflows/docker.yaml +++ b/.forgejo/workflows/docker.yaml @@ -12,21 +12,21 @@ jobs: uses: https://codeberg.org/umglurf/kaniko-action@main with: cache: true - cache_repo: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache + cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache credentials: | - ${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} + ${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }} destinations: | - ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} + ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} push: "true" if: github.ref == 'refs/heads/master' - name: Build ref uses: https://codeberg.org/umglurf/kaniko-action@main with: cache: true - cache_repo: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache + cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache credentials: | - ${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} + ${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }} destinations: | - ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} + ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} push: "true" if: github.ref != 'refs/heads/master'