diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a89365..e79f9d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,12 @@ jobs: images: | ${{ vars.DOCKER_ORGANIZATION }}/${{ env.IMAGE_NAME }} ${{ vars.REGISTRY_GITHUB }}/${{ github.repository }} + - name: Login to GitHub registry + uses: docker/login-action@v4 + with: + registry: ${{ vars.REGISTRY_GITHUB }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build image uses: docker/build-push-action@v7 with: @@ -30,3 +36,5 @@ jobs: push: false tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=registry,ref=${{ vars.REGISTRY_GITHUB }}/${{ github.repository }}:buildcache + cache-to: type=registry,ref=${{ vars.REGISTRY_GITHUB }}/${{ github.repository }}:buildcache,mode=max