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'