From ef9d6dfed3ad61bde7d565c4e5831e007ea2fab4 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sat, 10 Jan 2026 00:29:01 -0500 Subject: [PATCH] try build-push action --- .gitea/workflows/build-and-publish.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yml b/.gitea/workflows/build-and-publish.yml index 338a732..d2a4d16 100644 --- a/.gitea/workflows/build-and-publish.yml +++ b/.gitea/workflows/build-and-publish.yml @@ -12,19 +12,20 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Build Docker Image - run: | - docker build -t git.alexav.gg/${{ gitea.repository }}:latest . - docker build -t git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} . + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Login to Gitea Reg run: | echo "${{ secrets.RUNNER_TOKEN }}" | docker login git.alexav.gg -u ${{ gitea.actor }} --password-stdin - - name: Push Docker Image - run: | - docker push git.alexav.gg/${{ gitea.repository }}:latest - docker push git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} - - - name: Cleanup - run: docker logout git.alexav.gg + - name: Build Docker Image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: | + git.alexav.gg/${{ gitea.repository }}:latest + git.alexav.gg/${{ gitea.repository }}:${{ gitea.sha }} + cache-from: type=registry,ref=git.alexav.gg/${{ gitea.repository }}:buildcache + cache-to: type=registry, ref=git.alexav.gg/${{ gitea.repository }}:buildcache,mode=max